#include<iostream>
#include<string>
#include<cmath>
int main() {
	int a, b;
	for (int i = 0;i < 200;++i) {
		std::cin >> a >> b;
	}
	int d = 0;
	for (int i = 0;i < 7;++i) {
		if (pow(10, i)) {
			++b;
		}
	}
	std::cout << d << std::endl;
	return 0;
}