fork download
  1. N=int(input())
  2. P=int(input())
  3. a=8.5;b=8.25;c=7.25
  4. K=N*P*(a+b+c)
  5. D=N*(a+b+c)/3;
  6. print(K,D)
Success #stdin #stdout 0.09s 14168KB
stdin
4
5
stdout
480.0 32.0