import java.util.Scanner fun main(args: Array<String>) { val read = Scanner(System.`in`) val n = read.nextLine().toInt() //五次分别经过n, n, n/2, n/4, n/8 println(2.875*n) //五次分别反弹n/2, n/4, n/8, n/16, n/32 println(0.03125*n) }