p = int(input()) print ( p,1)