#34993: python AC


1554101-0@g.puiching.edu.mo (P6A29_1300題了)


a,b = input().split()
print(a,'and',b,'sitting in the tree')