if int(input())==1: print(-1) else: a=0 while True: a+=1