#CCBOTPBA0000001. Tổng điểm hai đội (Total Scores of Two Teams)

Tổng điểm hai đội (Total Scores of Two Teams)

Total Scores of Two Teams

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

There are n rounds; team A scores a_i and team B scores b_i in round i. Compare their total points and print the team with the larger total, or DRAW on a tie.

Input

First an integer n, followed by n integer pairs a_i b_i (whitespace separated).

Output

Print exactly A, B, or DRAW, followed by a newline.

Subtasks

  • Subtask 1 (20%): 1 ≤ n ≤ 10; scores 0..10.

  • Subtask 2 (30%): 1 ≤ n ≤ 100; scores 0..100.

  • Subtask 3 (50%): 1 ≤ n ≤ 1000; scores 0..100.

Examples

Example 1

Input:

3
10 2
0 12
3 3

Output:

B

Explanation: A totals 13 and B totals 17, so print B.

Example 2

Input:

3
8 3
0 4
2 3

Output:

DRAW

Explanation: Both teams total 10, hence DRAW.

Example 3

Input:

2
100 1
0 2

Output:

A

Explanation: A totals 100 and B totals 3.