n = int(input()) a = [7,130,910,3100,230] print(a[n-1])