import scala.io.Source.stdin

object Main extends App{
  stdin.getLines.foreach { s=>
    var d = s.toDouble
    println {
      d + (for(i<-2 to 10) yield {
        if(i%2==0) d=d*2
        else d=d/3
        d
      }).sum
    }
  }
}