Skip to content

Winning Team

A1300
English

Language

Contribute a translation
Time limit
1000 ms
Memory limit
256 MB
Submissions
7
Correct
5
Solved by
5
AC rate
71.429%

Statement

Two teams, Team A and Team B, played several games.

Team A has $A$ points and Team B has $B$ points.

Print:

  • "A" if Team A has more points
  • "B" if Team B has more points
  • "same" if both teams have the same points

Input

The first line contains two integers $A$ and $B$, separated by a space. ($0 \le A, B \le 1\,000$)

Output

Print "A", "B", or "same".

Examples

Sample input 1
9 6
Sample output 1
A

Team A has $9$ points, which is more than Team B's $6$ points.

Sample input 2
15 20
Sample output 2
B

Team B has $20$ points, which is more than Team A's $15$ points.

Sample input 3
7 7
Sample output 3
same

Both teams have the same number of points.

In these problemsets