if __FILE__ == $0
  while line = gets
    a = line.to_f
    prev = a
    sum = a
    for i in (2..10)
      if i % 2 == 0
        prev = prev * 2
      else
        prev /= 3.0
      end
      sum += prev
    end
    puts sum
  end
end