let N = Int(readLine()!)! let a = N > 10 ? 10 : 1 print(a, N - a)