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