#!/usr/bin/python N = int(raw_input()) a = 1 << 31 b = N - a print a, b