import java.util.Scanner;
import java.lang.String;
public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		char ch;
		String s;
		int b = 0;
		while (input.hasNext())
		{

			String st = "";
			s = input.next();
			for(int i = 0; i < s.length(); i++)
			{
				ch = s.charAt(i);
				if(ch >= 'A' && ch <= 'Z')
				{
					ch = Character.toLowerCase(ch);
				}
				else if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				}
				st = st + ch;
			}
			if(b == 0)
			{
				System.out.print(st);
				b++;
			}
			else 
			{
				System.out.print(' ' + st);
			}
		}
		System.out.println();
	}
} import java.util.Scanner; Scanner java.util import java.lang.String; String java.lang public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		char ch;
		String s;
		int b = 0;
		while (input.hasNext())
		{

			String st = "";
			s = input.next();
			for(int i = 0; i < s.length(); i++)
			{
				ch = s.charAt(i);
				if(ch >= 'A' && ch <= 'Z')
				{
					ch = Character.toLowerCase(ch);
				}
				else if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				}
				st = st + ch;
			}
			if(b == 0)
			{
				System.out.print(st);
				b++;
			}
			else 
			{
				System.out.print(' ' + st);
			}
		}
		System.out.println();
	}
} Main public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		char ch;
		String s;
		int b = 0;
		while (input.hasNext())
		{

			String st = "";
			s = input.next();
			for(int i = 0; i < s.length(); i++)
			{
				ch = s.charAt(i);
				if(ch >= 'A' && ch <= 'Z')
				{
					ch = Character.toLowerCase(ch);
				}
				else if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				}
				st = st + ch;
			}
			if(b == 0)
			{
				System.out.print(st);
				b++;
			}
			else 
			{
				System.out.print(' ' + st);
			}
		}
		System.out.println();
	} main {
		Scanner input = new Scanner(System.in);
		char ch;
		String s;
		int b = 0;
		while (input.hasNext())
		{

			String st = "";
			s = input.next();
			for(int i = 0; i < s.length(); i++)
			{
				ch = s.charAt(i);
				if(ch >= 'A' && ch <= 'Z')
				{
					ch = Character.toLowerCase(ch);
				}
				else if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				}
				st = st + ch;
			}
			if(b == 0)
			{
				System.out.print(st);
				b++;
			}
			else 
			{
				System.out.print(' ' + st);
			}
		}
		System.out.println();
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) char ch; ch String s; s int b = 0; b 0 while (input.hasNext())
		{

			String st = "";
			s = input.next();
			for(int i = 0; i < s.length(); i++)
			{
				ch = s.charAt(i);
				if(ch >= 'A' && ch <= 'Z')
				{
					ch = Character.toLowerCase(ch);
				}
				else if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				}
				st = st + ch;
			}
			if(b == 0)
			{
				System.out.print(st);
				b++;
			}
			else 
			{
				System.out.print(' ' + st);
			}
		} input.hasNext() input.hasNext input {

			String st = "";
			s = input.next();
			for(int i = 0; i < s.length(); i++)
			{
				ch = s.charAt(i);
				if(ch >= 'A' && ch <= 'Z')
				{
					ch = Character.toLowerCase(ch);
				}
				else if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				}
				st = st + ch;
			}
			if(b == 0)
			{
				System.out.print(st);
				b++;
			}
			else 
			{
				System.out.print(' ' + st);
			}
		} String st = ""; st "" s = input.next() s input.next() input.next input for(int i = 0; i < s.length(); i++)
			{
				ch = s.charAt(i);
				if(ch >= 'A' && ch <= 'Z')
				{
					ch = Character.toLowerCase(ch);
				}
				else if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				}
				st = st + ch;
			} int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
				ch = s.charAt(i);
				if(ch >= 'A' && ch <= 'Z')
				{
					ch = Character.toLowerCase(ch);
				}
				else if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				}
				st = st + ch;
			} {
				ch = s.charAt(i);
				if(ch >= 'A' && ch <= 'Z')
				{
					ch = Character.toLowerCase(ch);
				}
				else if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				}
				st = st + ch;
			} ch = s.charAt(i) ch s.charAt(i) s.charAt s i if(ch >= 'A' && ch <= 'Z')
				{
					ch = Character.toLowerCase(ch);
				}
				else if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				} ch >= 'A' && ch <= 'Z' ch >= 'A' ch 'A' ch <= 'Z' ch 'Z' {
					ch = Character.toLowerCase(ch);
				} ch = Character.toLowerCase(ch) ch Character.toLowerCase(ch) Character.toLowerCase Character ch if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				} ch >='a' && ch <= 'z' ch >='a' ch 'a' ch <= 'z' ch 'z' {
					ch = Character.toUpperCase(ch);
					
				} ch = Character.toUpperCase(ch) ch Character.toUpperCase(ch) Character.toUpperCase Character ch st = st + ch st st + ch st ch if(b == 0)
			{
				System.out.print(st);
				b++;
			}
			else 
			{
				System.out.print(' ' + st);
			} b == 0 b 0 {
				System.out.print(st);
				b++;
			} System.out.print(st) System.out.print System.out System System.out st b++ b {
				System.out.print(' ' + st);
			} System.out.print(' ' + st) System.out.print System.out System System.out ' ' + st ' ' st System.out.println() System.out.println System.out System System.out String args[] args public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		char ch;
		String s;
		int b = 0;
		while (input.hasNext())
		{

			String st = "";
			s = input.next();
			for(int i = 0; i < s.length(); i++)
			{
				ch = s.charAt(i);
				if(ch >= 'A' && ch <= 'Z')
				{
					ch = Character.toLowerCase(ch);
				}
				else if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				}
				st = st + ch;
			}
			if(b == 0)
			{
				System.out.print(st);
				b++;
			}
			else 
			{
				System.out.print(' ' + st);
			}
		}
		System.out.println();
	}
} public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		char ch;
		String s;
		int b = 0;
		while (input.hasNext())
		{

			String st = "";
			s = input.next();
			for(int i = 0; i < s.length(); i++)
			{
				ch = s.charAt(i);
				if(ch >= 'A' && ch <= 'Z')
				{
					ch = Character.toLowerCase(ch);
				}
				else if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				}
				st = st + ch;
			}
			if(b == 0)
			{
				System.out.print(st);
				b++;
			}
			else 
			{
				System.out.print(' ' + st);
			}
		}
		System.out.println();
	}
} Main
import java.util.Scanner;
import java.lang.String;
public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		char ch;
		String s;
		int b = 0;
		while (input.hasNext())
		{

			String st = "";
			s = input.next();
			for(int i = 0; i < s.length(); i++)
			{
				ch = s.charAt(i);
				if(ch >= 'A' && ch <= 'Z')
				{
					ch = Character.toLowerCase(ch);
				}
				else if(ch >='a' && ch <= 'z') {
					ch = Character.toUpperCase(ch);
					
				}
				st = st + ch;
			}
			if(b == 0)
			{
				System.out.print(st);
				b++;
			}
			else 
			{
				System.out.print(' ' + st);
			}
		}
		System.out.println();
	}
}