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