def main(): K = int(input()) s = [2,3,5 ,7, 11, 13] g = [4,6,8,9,10,12] for x in s: if K/x in g: return print(1/36) print(0) if __name__ == '__main__': main()