#!/usr/bin/python from random import * n = int(raw_input()) a = choice(range(100, 200)) b = n - a print a, b