#00009E

z-tickets

Toma, Strahinja and Uroš really like to place bets on horse races. Little Z. knows how much they like spending money on horse races, so he is trying to make them bet at his race track. In order to make them bet at his race track he decided that he will refund their bets for some serial numbers of the bet receipts.


The serial numbers contain N digits, where N is always divisible by 2. Mr. Little Z. says that he will refund the bet if the sum of the first N/2 digits of the serial number equals to the sum of the second N/2 digits of the serial number.


Little Z. is not sure if this is the best way to go, so he wants to find out, for a given N how many different serial numbers are there so that the sum of the first half of the digits equal to the sum of the second half of the digits.


InputFrom the first line of the standard input read one integer N, (1<N<21) that represents the number of digits of the serial numbers.

OutputTo the standard output write one integer that represents the number of bets that Little. Z. will have to refund, that is the number of receipts whose serial number has the sum of the first half of the digits equal to the sum of the second half.

Input:
4
Output:
670
If the receipts have 4 digit serial numbers, then there are 670 numbers for which Little Z has to refund the bet. Those are numbers: 0000, 0101, 0110, 1010, 1001, 1111 …then 659 more,and then .. 8989, 8998, 9898, 9889, 9999

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.