1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <iostream>
using namespace std;

int main()
{
	int x,k=0;
	unsigned long long y, z;
	cin >> x;
	cin >> y;
	for (x; x-1 > 0; x--) {
		z = y;
		cin >> y;
		while (true) {
			if (y <= z) {
				y *= 10;
				k++;
			}
			else break;
		}
	}
	
	
	cout << k;
	

	return 0;
}