2020
题号:NC216039
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

2020 is a special integer, it's formed of two same integers (20 and 20).

We call a number is a good number, if and only if it can be formed of two same integers(without leading zero).

For example: 2020 11, 19991999 are good numbers, but 303, 1122, 1221 are not.

Now you need to count the number of good numbers in

输入描述:

The first line has one single integer 


输出描述:

Output the answer
示例1

输入

复制
34

输出

复制
3
示例2

输入

复制
111111

输出

复制
111
示例3

输入

复制
777776

输出

复制
776
示例4

输入

复制
123413454357678

输出

复制
9999999