a=int(input()) print(a,a-1)