let id x = x

let sum x =
  let c = (float_of_int (81+2*81+2*27+4*27+4*9+8*9+3*8+3*16+16+32)) /. 81.0 in c *. x
  
let _ =
  try
    while true do
      let x = Scanf.scanf "%f\n" id in
      Printf.printf "%.10f\n" (sum x)
    done
  with
    End_of_file -> ()