import java.io.*;
class reverse
{
public static void main()throws IOException
{
InputStreamReader read=new InputStreamReader(System.in);
BufferedReader in=new BufferedReader(read);
System.out.println("enter a string");
String str=in.readLine();
char b,c;
int l,i;
l=str.length();
for(i=0;i<l;i++)
{
if(Character.isUpperCase(i)==true)
{
b=i.toLowerCase();}
else
{ c=i.toUpperCase();
}
String s=s+i;
}
System.out.println(s);
}
}
/*wap to input a string and print the text with the uppercase and lowercase reversed,eg-INPUT:WeLcoMe,OUTPUT:wElCOmE */