#C8723. Taco Card Game Winner

    ID: 52737 Type: Default 1000ms 256MiB

Taco Card Game Winner

Taco Card Game Winner

In this problem, two players, Alice and Bob, participate in a card game where each player is given a range of cards. Alice's cards range from c1 to d1, while Bob's cards range from c2 to d2. The outcome of the game is determined solely by comparing the maximum values in each range. More formally, let \(d_1\) be Alice's highest card value and \(d_2\) be Bob's highest card value. The rules are as follows:

  • If \(d_1 > d_2\), Alice is declared the winner.
  • If \(d_1 < d_2\), Bob is declared the winner.
  • If \(d_1 = d_2\), the game results in a Tie.

Your task is to implement a program that reads the card ranges, applies this logic, and outputs the winner's name accordingly. The input will be provided via standard input, and your output should be sent to standard output.

inputFormat

The input consists of a single line containing four space-separated integers: c1 d1 c2 d2. Here, c1 and d1 define Alice's card range, and c2 and d2 define Bob's card range.

outputFormat

Output a single word, which can be either "Alice", "Bob", or "Tie", depending on whose highest card is greater or if they are equal.## sample

5 10 1 6
Alice