Zero or One

Given three bits picked by three players, print the player whose bit differs from the other two, or * if there is no such player.

Easy1ImplementationBrute forceInterviewNo attempts yetTime limit1sMemory limit512 MB

Problem

Zero or One is the game people play to pick one person out of a group. The name changes from place to place, but the rules stay the same. Each player picks either 0 or 1. Someone calls out "Zero or one!", and every player at the same moment shows the picked value with one hand: an extended index finger for 1, a closed fist for 0. The player who picked a value different from everyone else wins. When no player picked a value different from everyone else, the round has no winner. That is what happens when all players pick 0.

Alice, Beto and Clara are close friends, and they settle every small question with Zero or One: who buys the popcorn at the movies, who gets into the pool first, and so on. They play it so often that they decided to build a program for playing it over the internet. None of the three knows how to write code, so they split the work among friends who do. I am one of them.

Given the three values picked by Alice, Beto and Clara, decide whether the round has a winner, and if it does, report who won.

Input

One line holds three integers AA, BB and CC separated by spaces. They are the values picked by Alice, Beto and Clara, in that order.

Constraints

  • A,B,C{0,1}A, B, C \in \{0, 1\}

Output

Print one line holding a single character. Print A if Alice wins, B if Beto wins, C if Clara wins, and the asterisk * if the round has no winner.