TopCoder

Caido
主唱太拼命了

User's AC Ratio

100.0% (13/13)

Submission's AC Ratio

100.0% (13/13)

Tags

Description

慶仔最討厭零錢了,因為當零錢太多時,總金額就會難以計算,現在慶仔的錢包裡有 $N$ 枚五元硬幣、 $M$ 枚十元硬幣,且只有這兩種貨幣,聰明的你可以幫幫慶仔算一算他一共有多少錢嗎?

Input Format

輸入只有一行。
輸入的第一行包含了兩個整數 $N, M\ (0 \le N, M \le 10^ {6})$,分別代表慶仔擁有的五元與十元硬幣的數量。

Output Format

請輸出一個整數,代表慶仔一共有多少錢。

Sample Input 1

2 2

Sample Output 1

30

Sample Input 2

5 19

Sample Output 2

215

Hints

Problem Source

Subtasks

No. Testdata Range Constraints Score
1 0~1 範例測資 0
2 0~9 無額外限制 100

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 524288 65536 1 2
1 1000 524288 65536 1 2
2 1000 524288 65536 2
3 1000 524288 65536 2
4 1000 524288 65536 2
5 1000 524288 65536 2
6 1000 524288 65536 2
7 1000 524288 65536 2
8 1000 524288 65536 2
9 1000 524288 65536 2