import sys
def input():return sys.stdin.readline().strip()
n=int(input())
ans=[2,5,4,15,14,25,24,35,34]
print(ans[n-2])