print((function (n) if n>10 then return n-10,10 end return 1,n-1 end)(io.stdin:read("*n")))