#include <iostream>#include <fstream>using namespace std;ifstream f("pb.in");ofstream g("pb.out");int main(){int n,v[100],max=-32000,i;f>>n;for(i=1;i<=n;i++) {f>>v[i]; while(v[i]!=0) { if(v[i]%10>max) max=v[i]%10; v[i]=v[i]/10; }
}cout<<"Baza de numeratie este: "<<max+1;
return 0;}