N=int(input())P=int(input())a=8.5;b=8.25;c=7.25K=N*P*(a+b+c)D=N*(a+b+c)/3;print(K,D)
4 5
480.0 32.0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!