问题

### Instructions: You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.
### Question:
Team Takahashi and Team Aoki played N matches.
In the i-th match (1\leq i\leq N), Team Takahashi scored X _ i points, and Team Aoki scored Y _ i points.
The team with the higher total score from the N matches wins.
Print the winner.
If the two teams have the same total score, it is a draw.

Input

The input is given from Standard Input in the following format:
N
X _ 1 Y _ 1
X _ 2 Y _ 2
\vdots
X _ N Y _ N

Output

If Team Takahashi wins, print Takahashi; if Team Aoki wins, print Aoki; if it is a draw, print Draw.

Constraints


- 1\leq N\leq 100
- 0\leq X _ i\leq 100\ (1\leq i\leq N)
- 0\leq Y _ i\leq 100\ (1\leq i\leq N)
- All input values are integers.

Sample Input 1

4
10 2
10 1
10 2
3 2

Sample Output 1

Takahashi

In four matches, Team Takahashi scored 33 points, and Team Aoki scored 7 points.
Team Takahashi wins, so print Takahashi.

Sample Input 2

6
5 4
4 5
2 4
1 6
7 1
3 2

Sample Output 2

Draw

Both teams scored 22 points.
It is a draw, so print Draw.

Sample Input 3

4
0 0
10 10
50 50
0 100

Sample Output 3

Aoki

One or both teams may score no points in a match.

### Format: Read the inputs from stdin solve the problem and write the answer to stdout (do not directly test on the sample inputs). Enclose your code within delimiters as follows.
```python
# YOUR CODE HERE
```

### Answer: (use the provided format with backticks)

答案

模型 模型答案 正确答案
金声玉亮2.0 ```python
# YOUR CODE HERE
import sys
input = sys.stdin.read
data = input().split()

N = int(data[0])
takahashi_score = 0
aoki_score = 0

for i in range(N):
X = int(data[2 * i + 1])
Y = int(data[2 * i + 2])
takahashi_score += X
aoki_score += Y

if takahashi_score > aoki_score:
print("Takahashi")
elif takahashi_score < aoki_score:
print("Aoki")
else:
print("Draw")
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
deepseek-r1

```python
n = int(input())
sum_t = 0
sum_a = 0
for _ in range(n):
x, y = map(int, input().split())
sum_t += x
sum_a += y
if sum_t > sum_a:
print("Takahashi")
elif sum_a > sum_t:
print("Aoki")
else:
print("Draw")
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
gpto1 ```python
# YOUR CODE HERE
N = int(input())
takahashi_total = 0
aoki_total = 0

for _ in range(N):
x_i, y_i = map(int, input().split())
takahashi_total += x_i
aoki_total += y_i

if takahashi_total > aoki_total:
print("Takahashi")
elif takahashi_total < aoki_total:
print("Aoki")
else:
print("Draw")
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
gpt-4o-2024-08-06 ```python
# YOUR CODE HERE
import sys

def main():
input = sys.stdin.read
data = input().splitlines()

N = int(data[0])
takahashi_total = 0
aoki_total = 0

for i in range(1, N + 1):
x, y = map(int, data[i].split())
takahashi_total += x
aoki_total += y

if takahashi_total > aoki_total:
print("Takahashi")
elif aoki_total > takahashi_total:
print("Aoki")
else:
print("Draw")

if __name__ == "__main__":
main()
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
DeepSeek-Coder-V2-Lite-Instruct ```python
# YOUR CODE HERE
N = int(input())
Takahashi_score = 0
Aoki_score = 0

for _ in range(N):
X_i, Y_i = map(int, input().split())
Takahashi_score += X_i
Aoki_score += Y_i

if Takahashi_score > Aoki_score:
print("Takahashi")
elif Aoki_score > Takahashi_score:
print("Aoki")
else:
print("Draw")
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
Meta-Llama-3.1-405B-Instruct-Turbo ```python
import sys

def main():
n = int(input())
takahashi_score = 0
aoki_score = 0

for _ in range(n):
x, y = map(int, input().split())
takahashi_score += x
aoki_score += y

if takahashi_score > aoki_score:
print("Takahashi")
elif takahashi_score < aoki_score:
print("Aoki")
else:
print("Draw")

if __name__ == "__main__":
main()
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
Meta-Llama-3.1-70B-Instruct-Turbo ```python
# YOUR CODE HERE
n = int(input())
takahashi = 0
aoki = 0
for _ in range(n):
x, y = map(int, input().split())
takahashi += x
aoki += y

if takahashi > aoki:
print("Takahashi")
elif takahashi < aoki:
print("Aoki")
else:
print("Draw")
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
Qwen2-72B-Instruct ```python
n = int(input())
t = 0
a = 0
for i in range(n):
x, y = map(int, input().split())
t += x
a += y
if t > a:
print("Takahashi")
elif t < a:
print("Aoki")
else:
print("Draw")
```
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
baichuan4 ```python
# YOUR CODE HERE
import sys

# Read the number of matches
N = int(sys.stdin.readline().strip())

# Initialize scores for both teams
takahashi_score = 0
aoki_score = 0

# Read the scores for each match and update the total scores
for _ in range(N):
match_scores = list(map(int, sys.stdin.readline().strip().split()))
takahashi_score += match_scores[0]
aoki_score += match_scores[1]

# Determine the winner
if takahashi_score > aoki_score:
print("Takahashi")
elif takahashi_score < aoki_score:
print("Aoki")
else:
print("Draw")
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
doubao ```python
N = int(input())
taka_score = 0
aoki_score = 0

for _ in range(N):
X, Y = map(int, input().split())
taka_score += X
aoki_score += Y

if taka_score > aoki_score:
print("Takahashi")
elif taka_score < aoki_score:
print("Aoki")
else:
print("Draw")
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
gpto1 ```python
# YOUR CODE HERE
N = int(input())
takahashi_total = 0
aoki_total = 0

for _ in range(N):
x_i, y_i = map(int, input().split())
takahashi_total += x_i
aoki_total += y_i

if takahashi_total > aoki_total:
print("Takahashi")
elif takahashi_total < aoki_total:
print("Aoki")
else:
print("Draw")
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
kimi ```python
# YOUR CODE HERE
n = int(input())
x = 0
y = 0
for _ in range(n):
(a, b) = map(int, input().split())
x += a
y += b
if x > y:
print('Takahashi')
elif x < y:
print('Aoki')
else:
print('Draw')
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
minimax ```python
# YOUR CODE HERE
N = int(input())
takahashi_score = 0
aoki_score = 0

for _ in range(N):
takahashi, aoki = map(int, input().split())
takahashi_score += takahashi
aoki_score += aoki

if takahashi_score > aoki_score:
print("Takahashi")
elif takahashi_score < aoki_score:
print("Aoki")
else:
print("Draw")
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
wenxinyiyan ```python
# Read the number of matches
N = int(input())

# Initialize scores for both teams
takahashi_score = 0
aoki_score = 0

# Read the scores for each match and update the total scores
for _ in range(N):
X, Y = map(int, input().split())
takahashi_score += X
aoki_score += Y

# Determine the winner
if takahashi_score > aoki_score:
print("Takahashi")
elif takahashi_score < aoki_score:
print("Aoki")
else:
print("Draw")
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
zhipu ```python
def main():
import sys
input = sys.stdin.read
data = input().split()

N = int(data[0])
takahashi_score = 0
aoki_score = 0

index = 1
for _ in range(N):
X = int(data[index])
Y = int(data[index + 1])
takahashi_score += X
aoki_score += Y
index += 2

if takahashi_score > aoki_score:
print("Takahashi")
elif takahashi_score < aoki_score:
print("Aoki")
else:
print("Draw")

if __name__ == "__main__":
main()
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]
deepseek-v3 ```python
# YOUR CODE HERE
# Read the number of matches
N = int(input())

# Initialize total scores for both teams
total_takahashi = 0
total_aoki = 0

# Loop through each match to accumulate the scores
for _ in range(N):
X, Y = map(int, input().split())
total_takahashi += X
total_aoki += Y

# Determine the winner based on the total scores
if total_takahashi > total_aoki:
print("Takahashi")
elif total_aoki > total_takahashi:
print("Aoki")
else:
print("Draw")
```
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}]