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