By Kay Akashi
Today the World GX summit is held in London. In this summit, political leaders from each of countries are invited and discuss the global issues. You, belonging to the department that is in charge of hosting a conference, are asked to arrange the first conference room today. However, you noticed that there're only chairs available around a circular table.
Having reported this matter to your boss, she tells you to pick up leaders from of them, and after you assign seats to everyone, rotate the entire table such that the country with name of the lowest alphabetical (lexicographic) order is facing directly north.
While trying to achieve your task, you wonder how many possible ways there are to pick up leaders from of them and arrange them around a circular table that satisfy your boss's command.
Since the answer can be astronomically large, your task is to find out the answer modulo . In other word, output the remainder of the answer divided by .
.
The input contains two integers in a single line: and .
Output the answer modulo .
5 3
20
First of all, there're ways to pick up leaders from participating leaders. Then, once leaders can be allocated to each table, of which there're ways to do so. Thus, the answer is ways.
294 72
524723643