#include
int main()
{
char *str;
char s[80];
scanf("%s",s);
str=s;
while(*str!='\0' && *str!='#')
{
if(*str>64&&*str<91)
{
*str+=32;
*str++;
continue;
}
if(*str>96&&*str<123)
{
*str-=32;
}
*str++;
}
int i=0;
while(s[i]!='\0' && s[i]!='#')
printf("%c",s[i++]);
return 0;
}
int i=0;
for(;char c=s[i]!='\0';i++){
if(c>='a'&&c<='Z'){
s[i]=c-32;
n++;
}else if(c>='A'&&c<='Z'){
n++;
}
}