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