x = int(input()) if x > 31: print("0 0") import sys sys.exit(0) r=x ans1=1; for i in range(r): ans1 *= (31-i) ans1 = int(ans1) for i in range(r): ans1 /= (i+1) ans1 = int(ans1) t=1 for i in range(r): t = int(t) * int(30-i) for i in range(r): t /= (i+1) t = int(t) / int(i+1) tt = int(ans1)-int(t) ans2 = int(0) for i in range(31): p = (1<