#SDNU1259. Problem G. play the guitar
Problem G. play the guitar
Description
lmh like playing the guitar, but he don’t satisfy others’ GTP. He want to write guitar score by himself. And he don’t want to use , it’s boring! He want to find a new rhythm. So he come up with a idea: get a GTP by computer and math. So he choose this expression. But we know, the guitar just have only six chords. So we have to change all to ( to , to , to , means open string).
Now give you n and k, can you give lmh a prefect GTP?
Format
Input
Input contains multiple test cases.
Each test case starts with two numbers and
Output
Calculate and change all to ( to , to , to ).
Samples
2 2
2 4
2 7
4
16
122