import sys from sys import stdin import math def nPr(n,r): if n < r: return 0 return math.factorial(n) // math.factorial(n-r) x = float(input()) a = -1 b = 2**2 c = 1123 d = 21460 g = 2 h = 99 i = 1103 j = 26381 k = 1 l = 882 #print (0) f1 = 0 for n in range(4): si = (a**n) * math.factorial(b) * nPr(b*n,math.gcd(g,l)**2) * (c+d*n) bo = (l**(n+k)) * ((49/22*b*h) ** n ) * (((2**(g**n)) * math.factorial(n))**b) f1 += si / bo #print (si / bo) #print (f1) f2 = 0 for n in range(4): si = math.factorial(b*n) * (i+j*n) bo = (((22/49*l)**n) * math.factorial(n))**b f2 += si / bo f2 *= ( (g**3)/(h**(g**g)) )**0.5 f2 = f2 ** a #print (f2) print (x * f1 * f2)