Score : $100$ points
Takahashi had his $N$-th birthday, when he was $T$ centimeters tall.
Additionally, we know the following facts:
Find Takahashi's height on his $M$-th birthday, in centimeters.
Input is given from Standard Input in the following format:
$N$ $M$ $X$ $T$ $D$
Print the answer as an integer.
38 20 17 168 3
168
In this sample, Takahashi was $168$ centimeters tall on his $38$-th birthday. Also, his height did not change between his $17$-th birthday and $38$-th birthday.
From these facts, we find that he was $168$ centimeters tall on his $20$-th birthday, so the answer is $168$.
1 0 1 3 2
1
In this sample, Takahashi was $1$ centimeter tall on his $0(=M)$-th birthday and $3(=T)$ centimeters tall on his $1(=N)$-st birthday.
100 10 100 180 1
90