nums=eval(input())
for i in range(1,len(nums)-1):
    tmp=i-1
    while(nums[tmp]>nums[tmp+1]):
        x=nums[tmp]
        nums[tmp]=nums[tmp+1]
        nums[tmp+1]=x
        tmp-=1
print(nums)
8334a9d8e4189be765ebeb77063f16f773aac88e
<mask token>

<mask token>
for i in range(1, len(nums) - 1):
    tmp = i - 1
    while nums[tmp] > nums[tmp + 1]:
        x = nums[tmp]
        nums[tmp] = nums[tmp + 1]
        nums[tmp + 1] = x
        tmp -= 1
print(nums)

nums = eval(input())
for i in range(1, len(nums) - 1):
    tmp = i - 1
    while nums[tmp] > nums[tmp + 1]:
        x = nums[tmp]
        nums[tmp] = nums[tmp + 1]
        nums[tmp + 1] = x
        tmp -= 1
print(nums)

nums=eval(input())
for i in range(1,len(nums)-1):
    tmp=i-1
    while(nums[tmp]>nums[tmp+1]):
        x=nums[tmp]
        nums[tmp]=nums[tmp+1]
        nums[tmp+1]=x
        tmp-=1
print(nums)