N = int(input()) x = min(10, N) print(string(x) + " " + string(N-x))