import sys sys.setrecursionlimit(10000000) MOD = 10 ** 9 + 7 INF = 10 ** 15 def main(): N = int(input()) for i in range(1,11): for j in range(1,11): if i + j == N: print(i,j) return if __name__ == '__main__': main()