k=int(input()) A=[2,3,5,7,11,13] B=[4,6,8,9,10,12] memo=[0]*(201) num=1/36 for a in A: for b in B: memo[a+b]+=num print(memo[k])