atcoder#ABC249A. [ABC249A] Jogging
[ABC249A] Jogging
Score : points
Problem Statement
Takahashi and Aoki decided to jog. Takahashi repeats the following: "walk at meters a second for seconds and take a rest for seconds." Aoki repeats the following: "walk at meters a second for seconds and take a rest for seconds." When seconds have passed since they simultaneously started to jog, which of Takahashi and Aoki goes ahead?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
When seconds have passed since they simultaneously started to jog, if Takahashi goes ahead of Aoki, print Takahashi
; if Aoki goes ahead of Takahashi, print Aoki
; if they have advanced the same distance, print Draw
.
4 3 3 6 2 5 10
Takahashi
During the first seconds after they started to jog, they move as follows.
- Takahashi walks for seconds, takes a rest for seconds, and walks again for seconds. As a result, he advances a total of meters.
- Aoki walks for seconds and takes a rest for seconds. As a result, he advances a total of meters.
Since Takahashi goes ahead, Takahashi
should be printed.
3 1 4 1 5 9 2
Aoki
1 1 1 1 1 1 1
Draw