{"problem":{"name":"Jogging","description":{"content":"Takahashi and Aoki decided to jog.   Takahashi repeats the following: \"walk at $B$ meters a second for $A$ seconds and take a rest for $C$ seconds.\"   Aoki repeats the following: \"walk at $E$ meters a","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc249_a"},"statements":[{"statement_type":"Markdown","content":"Takahashi and Aoki decided to jog.  \nTakahashi repeats the following: \"walk at $B$ meters a second for $A$ seconds and take a rest for $C$ seconds.\"  \nAoki repeats the following: \"walk at $E$ meters a second for $D$ seconds and take a rest for $F$ seconds.\"  \nWhen $X$ seconds have passed since they simultaneously started to jog, which of Takahashi and Aoki goes ahead?\n\n## Constraints\n\n*   $1 \\leq A, B, C, D, E, F, X \\leq 100$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$A$ $B$ $C$ $D$ $E$ $F$ $X$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc249_a","tags":[],"sample_group":[["4 3 3 6 2 5 10","Takahashi\n\nDuring the first $10$ seconds after they started to jog, they move as follows.\n\n*   Takahashi walks for $4$ seconds, takes a rest for $3$ seconds, and walks again for $3$ seconds. As a result, he advances a total of $(4 + 3) \\times 3 = 21$ meters.\n*   Aoki walks for $6$ seconds and takes a rest for $4$ seconds. As a result, he advances a total of $6 \\times 2 = 12$ meters.\n\nSince Takahashi goes ahead, `Takahashi` should be printed."],["3 1 4 1 5 9 2","Aoki"],["1 1 1 1 1 1 1","Draw"]],"created_at":"2026-03-03 11:01:13"}}