#include"stdio.h"
#include"string.h"
int main()
{
int i,j,t=1;
char a[1000];
gets(a);
for(i=0;iif(a[i]==' '){
t=1;
continue;
}
if(t&&(a[i]>='a'&&a[i]<='z')) {
a[i]-=32;
t=0 ;
}
else if(!t&&(a[i]>='A'&&a[i]<='Z')) a[i]+=32;
}
puts(a);
return 0;
}
/*
运行结果:
I love yoU !
I Love You !
*/