import java.util.*; public class Yukicoder_57{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int N = stdIn.nextInt(); double ex = 0; ex = 21.0*(double)N/6.0; System.out.printf("%.2f\n",ex); } }