v = [0,0,2,5,4,15,14,25,24,35,34] x = int(input()) print(v[x])