from collections import defaultdict k = int(input()) dice1 = [2, 3, 5, 7, 11, 13] dice2 = [4, 6, 8, 9, 10, 12] table = defaultdict(int) for i in dice1: for j in dice2: table[i*j] += 1 print(table[k]/36)