N = int(raw_input()) print N - 10, 10