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