In Scundu, two boys were playing basketball. They are not very good at the game, so they got bored and decided to rest on a bench. While sitting there, they wondered: if a game of basketball ends with the score and , where is the score of the first team and is the score of the second team, in how many ways can this score be obtained? Because they are not very good at programming either, they need your help to find out.
In Scundu, the basketball rules are the following: depending on the striking distance, each team can get either 2 or 3 points for introducing the ball in the basket. Because scundenians are superior people, we consider that faults will never occur.
Input data
The input contains two integers and (), where is the score of the first team and is the score of the second team.
Output data
The output contains one integer , the number of ways that score can be obtained. Because the number of ways can be very big, the number of ways should be printed modulo .
Constraints and clarifications
- For points, we have ;
- For another points, we have or ;
- For the last points, we have .
Example 1
stdin
2 5
stdout
6
Explanation
The ways we can obtain the score are the following:
to to to to
to to to to
to to to to
to to to to
to to to to
to to to to