#21309: python 3


jerjer920813@gmail.com (YJ)


s = input().split(" ")
print(f"{s[0]} and {s[1]} sitting in the tree")