COROANA TE ROG!!!
#include<iostream>
#include<fstream>
#include<cstring>
using namespace std;
int main(){
ifstream cin("intrare.txt");
int n, max=-1;
cin>>n;
char v[101][101], cuvmax[50];
for(int i=1;i<=n;i++)
{
char cuv[50];
cin>>cuv;
int sem=1;
for(int j=0;j<strlen(cuv);j++) if(strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZ", cuv[j])!=NULL) sem=0;
if(sem==1) cout<<cuv<<' ';
if(strlen(cuv)>max) {max=strlen(cuv); strcpy(cuvmax, cuv);}
strcpy(v[i], cuv);
}
cout<<endl<<cuvmax<<endl;
int j=0;
for(int i=1;i<=n;i++,j++) if(j>strlen(v[i])) cout<<' ';
else cout<<v[i][j];
return 0;
}