a, b = raw_input().split() print b + ' ' + a