a=int(input()) b=int(input()) temp = a a = b b = temp print("finally",b, "becomes",format(a),"and",a,"becomes",format(b))