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