n = int(input()) a = [7,130,920,3090,166] print(a[n-1])