#include <iostream>
#include <cstring>
#include <cctype>
using namespace std;
int i, k, p;
char a[101];
int main ()
{
cin.get(a, 101);
p = 1;
for(i = 0; i <= strlen(a)-1; i++) {
if (p%2 == 1) a[i] = toupper(a[i]);
else a[i] = tolower(a[i]);
p++;
if (a[i] == ' ') p = 1;
}
cout << a;
return 0;
}