• [1145] Admission Fee

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • There are some adults and kids going to a zoo.The fee is 80 yuan for an adult and 60 yuan for a kid.And there is a group ticket about 350 yuan for 4 adults and 2 kids.No full can also buy group ticket.


  • 输入
  • Input until EOF.
    There are two integers a(0<=a<=100000) and b(0<=b<=100000) in one line.a means the number of adults,b means the number of kids.
  • 输出
  • You should output the minimum fee they should pay.
  • 样例输入
  • 3 2
    4 2
    
  • 样例输出
  • 350
    350
  • 提示
  • 来源
  • hungar
  • 操作

显示春菜