n = int(input()) if n <= 11:print(*[1, n - 1]) else:print(*[10, n - 10])