Problem A
Making A Meowth

After suffering an embarrassing defeat at the hands of Team Rocket, you come to the obvious conclusion that the only way to beat them is by teaching your own Meowth how to read.
To prevent burn out, you’ve created the following study
plan: your Meowth will read every
Input
The only line of input contains 4 space-separated positive
integers,
Output
Output one line containing a single integer: the amount of time in minutes you and your Meowth will spend reading together.
Sample Input 1 | Sample Output 1 |
---|---|
4 10 2 3 |
29 |
Sample Input 2 | Sample Output 2 |
---|---|
3 14 2 5 |
63 |
Sample Input 3 | Sample Output 3 |
---|---|
10 4 2 3 |
8 |