mod=3*5*17*257*65537 n=int(input()) if n<110: raise Exception print(mod) print(1)