Тавсифи масъала
Somon has types of flowers, one of each. He is going to choose one or more of these flowers to make a bouquet. However, she does not like two numbers and , so the number of flowers in the bouquet cannot be equal to or . How many different bouquets can Somon make? Find the number of bouquets modulo . Here, two bouquets are considered different if there is a flower that is used in one bouquet but absent in the other.
Input Format
The only line of the input contains three integers , and .
Output Format
Print a single number --- the answer to the problem modulo .
Мисолҳо
Мисол 1
Вуруд
4 1 3
Баромад
7
Мисол 2
Вуруд
1000000000 141421 173205
Баромад
34076506