#22900: 照我的寫


mark0516 (鐵木真)


n1,n2 = input().split()
print(n1,"and",n2,"sitting in the tree")