Keitai

*le wild flashback appears

Remember this? Today we shall discover the intricate story of how Xorin managed to get hold of Xoranna's phone number.

It all started when the two incidentally chose the same vending machine in their university campus. Unluckily, Xorin was all out of money, due to his previous night out. Right when he was ready to disheartenedly head back to class, Xoranna came out of nowhere and handed him the 2 RON he required for his hot chocolate.

Xorin was delighted. They only thought he could think of was along the lines of "hmm... she's alright...". So he instinctively asked her for her number, which she immediately agreed to. It was only the next day when he noticed he had missed one digit...

"Wait!", Xorin thought to himself. "There can't possibly be that many combinations...". The real number's format was 07######## (10 digits - the fixed 07, followed by 8 custom digits). The number Xorin saved only has the fixed 07 and 7 custom digits. Your task is to find out how many unique and valid 10-digit numbers Xorin's number could have originated from.

Input

The only line of input contains the 9-digit number that Xorin wrote down.

Output

You should output one integer - the number of unique numbers that Xorin has to try.

Samples

InputOutput
07123456773
Questions?

Sponsors Gold