Buses and Minibuses

Given a total line length N, count ordered sequences of 10-meter buses and 5-meter minibuses with K minibus colors and L bus colors, and print the last six digits.

Medium6CombinatoricsDynamic programmingMathNo attempts yetTime limit2sMemory limit512 MB

Problem

Running a programming contest takes preparation from the organizers, and transporting the competitors is one of the recurring headaches. At a recent contest, Ricardinho watched the buses and minibuses that had brought the competitors stand in a single line, one behind another, while everyone got off. Every vehicle belonged to the same company, but the paint jobs differed. Ricardinho started wondering how many different lines that company could form with its buses and minibuses.

A bus is 10 meters long and a minibus is 5 meters long. Given the total length of the line, the number of colors available for minibuses, and the number of colors available for buses, count how many lines can be formed.

The line is ordered from front to back. Two lines are different if some position holds a different vehicle type or a different color. Vehicles of the same type and color are not distinguished from each other.

Input

The first line contains three integers NN, KK and LL separated by spaces. NN is the total length in meters of the line Ricardinho is considering, KK is the number of different colors for minibuses, and LL is the number of different colors for buses. NN, KK and LL can be very large, so 64 bit integers are recommended.

Constraints

  • 5N10155 \le N \le 10^{15} and NN is a multiple of 5
  • 1K10151 \le K \le 10^{15}
  • 1L10151 \le L \le 10^{15}

Output

The number of lines can be very large, so report its last six digits. Print exactly six digits on one line, padded with leading zeros when needed.