k = int(input()) s = [] dice1 = [2, 3, 5, 7, 11, 13] dice2 = [4, 6, 8, 9, 10, 12] for i in dice1: count1 = 0 count2 = 0 for j in dice2: if j * i == k: count2 += 1 temp = j if count2 >= 1: for i in dice1: if i * temp == k: count1 += 1 if count1 >= 1 and count2 >= 1: s.append(count1/6) s.append(count2/6) if s == []: print(0) else: p = s[0] for i in range(1, len(s)): p *= s[i] print(p)