Problem E: 练21.5  打车费用

Memory Limit:64 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:6 Solved:4

Description

周末,格莱尔和爸爸打车到游乐园玩。打车计价方案为:$2$千米以内起步是$6$元;超过$2$千米后按$1.8$元/千米计价;超过$10$千米后在$1.8$元/千米的基础上加价$50$%。此外,停车等候则按时间计费:每$3$分钟加收$1$元(注:不满$3$分钟不计费)。

Input

$2$个整数,分别表示行车路程和停车时间。

Output

$1$个整数,表示费用。

Sample Input Copy

1 3

Sample Output Copy

7