#abc227a. [abc227_a]Last Card
[abc227_a]Last Card
Problem Statement
We will hand out a total of cards to people numbered .
Beginning with Person , we will give the cards one by one to the people in this order: . Who will get the last card?
Formally, after Person gets a card, Person will get a card. After Person gets a card, Person gets a card.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print a number representing the person who will get the last card.
Sample Input 1
3 3 2
Sample Output 1
1
The cards are given to Person in this order.
Sample Input 2
1 100 1
Sample Output 2
1
Sample Input 3
3 14 2
Sample Output 3
3