#!/usr/bin/env python # -*- coding:utf-8 -*- import math x = int(input()) def binom(self, n, r): return 0 if x > 31: m = 0 s = 0 else: m = int(math.factorial(31)/(math.factorial(x)*math.factorial(31 - x))) s = (2**31 - 1) * int(x * m / 31) print(m,s)