#include using namespace std; int main() { int i; char S[ 200 ]; char T[ 200 ]; char C; cin >> S; i = 0; do { C = S[ i ]; if( C >= 'a' && C <= 'z' ) T[ i ] = C + ( 'A' - 'a' ); else if( C >= 'A' && C <= 'Z' ) T[ i ] = C + ( 'a' - 'A' ); i++; } while( C != '\0' ); cout << T << endl; return 0; }