a,b=input().split();print(a,'1')