Tongtong is playing math game again. She had come across this square matrix many times,so needless to say, she knows what you want to ask. Now she throws this question to you. You need to look at the following square matrix,then she will give you three integers n,x,and y,that means there are an n×n square matrix.
You need to figure out what the value of row x, column y corresponds to.
0 1 3 6 A
2 4 7 B F
5 8 C 10 13
9 D 11 14 16
Only a single line contains three integers n,x,y (0≤x≤1000000000, 0≤y≤1000000000, 1≤n≤1000000001)
A single line with an integer representing the corresponding value.