#include<iostream>
#include<cctype>
using namespace std;

int main()
{
	int i;
	char input[50];
	cout << "Enter a name : " ;
	cin >> input ;
	
	for( int i=0 ; input [i] !='\0' ;i++)
	{
		if(isupper(input[i]))
		input[i] = tolower (input[i]);
		
		else if (islower(input[i]))
		input[i] = toupper(input[i]);
	
	}
	cout << "The opposite case are : " << input;
	return 0;
}
