1. Long training
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

Eugene is preparing for the city sports competition, where he wants to show himself as the strongest. He trains according to the system of Shaolin monks. The training consists of $$$N$$$ sets, each set lasting for $$$M$$$ minutes and $$$S$$$ seconds, and there is a break of $$$P$$$ seconds between each pair of consecutive sets.

Help Eugene determine how much time the training will take.

Input

The first line contains an integer $$$N$$$ $$$(1 \le N \le 100)$$$, which stands for the number of sets.

The second line contains an integer $$$M$$$ $$$(0 \le M \le 59)$$$, which stands for the number of minutes in one set.

The third line contains an integer $$$S$$$ $$$(0 \le S \le 59)$$$, which is the number of seconds in one set.

The fourth line contains an integer $$$P$$$ $$$(0 \le P \le 120)$$$, which denotes the duration of the break between the sets expressed in seconds.

It is assumed that one set takes a non-zero amount of time.

Output

Output two integers: the duration of training in minutes and seconds. The former equals the number of minutes the training takes. The latter is the number of seconds the training takes, ranging from $$$0$$$ through $$$59$$$.

Example
Input
4
3
24
70
Output
17
6
Note

In the example from the problem, Eugene needs to perform $$$4$$$ sets of training, each set lasts $$$3$$$ minutes $$$24$$$ seconds. At the same time, he will have $$$3$$$ breaks between the sets, each lasting $$$70$$$ seconds. Therefore, the entire training will take $$$17$$$ minutes and $$$6$$$ seconds.