#import mpmath x = int(input()) if x >= 21: print(0) exit() dic = {2: 1000000, 3: 355065, 4: 153009, 5: 70685, 6: 33758, 7: 16414, 8: 8065, 9: 3988, 10: 1979, 11: 985, 12: 491, 13: 245, 14: 122, 15: 61, 16: 30, 17: 15, 18: 7, 19: 3, 20: 1} print(dic[x]) ''' dic = dict() for k in range(2,21): ans_ = 1 for i in range(2,k): ans_ -= mpmath.zeta(i,1)-1 dic[k] = int(ans_*10**6) print(dic) '''