a = input().split() b = int(a[0]) c = int(a[1]) if b>c: d = b b = c c = d print(b,c) else: print(b,c)