#include <iostream>
#include <cstring>
using namespace std;
int main(){
int i,n;
char s[256];
//Citeste sir, determina dimensiunea
cin.get(s,256);
n=strlen(s);
//Parcurge fiecare litera
for(i=0;i<n;i++){
//Daca caracterul citit e litera
if(s[i]>='a'&&s[i]<='z'){
//Transforma in litera mare
s[i]+='A'-'a';
}
}
//Afiseaza rezultat
cout << s;
}
#include <iostream>
using namespace std;
int nrcif(int n){
int c=0;
while(n){
c++;
n=n/10;
}
return c;
}
int main(){
int n,v[10000],i;
//Citire date
cin >> n;
for(i=0;i<n;i++) cin >> v[i];
//Prelucrare vector
for(i=0;i<n;i++){
if(v[i]%2==0) v[i]=nrcif(v[i]);
else v[i]=v[i]*v[i];
}
//Afisare rezultat
for(i=0;i<n;i++) cout << v[i] << " ";
}