#!/usr/bin/env python #coding:utf8 def read(): return input() def bino(a, b): return 1 if b == 0 else bino(a - 1, b - 1) * a / b def work(n): print bino(31, n), bino(30, n - 1) * ((1 << 31) - 1) if __name__ == "__main__": work(read())