#include<bits/stdc++.h> using namespace std; int main(){ int a,q,wei=0,best=0; cin>>a; for(int i=1;i<=a;i++){ cin>>q; wei=0; while(q<=0){ q/10; wei++; } if(best<wei){ best=wei; } } cout<<best; return 0; }