def swap(a, b):
	temp = a
	a=b
	b= temp
	print(a, " ", b)


if __name__ == "__main__":
	a = int(input())
	b = int(input())
	swap(a, b)