
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String strB = "";

		String strA = sc.nextLine();
	//	System.out.println("??\?????????????????? : "+strA);
	//	System.out.println("");


		for(int i = 0; i < strA.length(); i++) {
			strB = strA.substring(i,i+1);

		//	System.out.println("strB.charAt(0) : "+strB.charAt(0));

			//??§????????????true
			if(Character.isUpperCase(strB.charAt(0))) {
				Character.toLowerCase(strB.charAt(0));
				System.out.print(Character.toLowerCase(strB.charAt(0)));
			}
			//?°???????????????§???????????????
			else {
				if(strB == " " || strB == "," || strB == ".") {
					System.out.println(strB);
				}
				else {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				}
			}

		}
		System.out.println("");
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String strB = "";

		String strA = sc.nextLine();
	//	System.out.println("??\?????????????????? : "+strA);
	//	System.out.println("");


		for(int i = 0; i < strA.length(); i++) {
			strB = strA.substring(i,i+1);

		//	System.out.println("strB.charAt(0) : "+strB.charAt(0));

			//??§????????????true
			if(Character.isUpperCase(strB.charAt(0))) {
				Character.toLowerCase(strB.charAt(0));
				System.out.print(Character.toLowerCase(strB.charAt(0)));
			}
			//?°???????????????§???????????????
			else {
				if(strB == " " || strB == "," || strB == ".") {
					System.out.println(strB);
				}
				else {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				}
			}

		}
		System.out.println("");
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String strB = "";

		String strA = sc.nextLine();
	//	System.out.println("??\?????????????????? : "+strA);
	//	System.out.println("");


		for(int i = 0; i < strA.length(); i++) {
			strB = strA.substring(i,i+1);

		//	System.out.println("strB.charAt(0) : "+strB.charAt(0));

			//??§????????????true
			if(Character.isUpperCase(strB.charAt(0))) {
				Character.toLowerCase(strB.charAt(0));
				System.out.print(Character.toLowerCase(strB.charAt(0)));
			}
			//?°???????????????§???????????????
			else {
				if(strB == " " || strB == "," || strB == ".") {
					System.out.println(strB);
				}
				else {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				}
			}

		}
		System.out.println("");
	} main {

		Scanner sc = new Scanner(System.in);
		String strB = "";

		String strA = sc.nextLine();
	//	System.out.println("??\?????????????????? : "+strA);
	//	System.out.println("");


		for(int i = 0; i < strA.length(); i++) {
			strB = strA.substring(i,i+1);

		//	System.out.println("strB.charAt(0) : "+strB.charAt(0));

			//??§????????????true
			if(Character.isUpperCase(strB.charAt(0))) {
				Character.toLowerCase(strB.charAt(0));
				System.out.print(Character.toLowerCase(strB.charAt(0)));
			}
			//?°???????????????§???????????????
			else {
				if(strB == " " || strB == "," || strB == ".") {
					System.out.println(strB);
				}
				else {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				}
			}

		}
		System.out.println("");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String strB = ""; strB "" String strA = sc.nextLine(); strA sc.nextLine() sc.nextLine sc for(int i = 0; i < strA.length(); i++) {
			strB = strA.substring(i,i+1);

		//	System.out.println("strB.charAt(0) : "+strB.charAt(0));

			//??§????????????true
			if(Character.isUpperCase(strB.charAt(0))) {
				Character.toLowerCase(strB.charAt(0));
				System.out.print(Character.toLowerCase(strB.charAt(0)));
			}
			//?°???????????????§???????????????
			else {
				if(strB == " " || strB == "," || strB == ".") {
					System.out.println(strB);
				}
				else {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				}
			}

		} int i = 0; int i = 0; i 0 i < strA.length() i strA.length() strA.length strA i++ i++ i {
			strB = strA.substring(i,i+1);

		//	System.out.println("strB.charAt(0) : "+strB.charAt(0));

			//??§????????????true
			if(Character.isUpperCase(strB.charAt(0))) {
				Character.toLowerCase(strB.charAt(0));
				System.out.print(Character.toLowerCase(strB.charAt(0)));
			}
			//?°???????????????§???????????????
			else {
				if(strB == " " || strB == "," || strB == ".") {
					System.out.println(strB);
				}
				else {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				}
			}

		} {
			strB = strA.substring(i,i+1);

		//	System.out.println("strB.charAt(0) : "+strB.charAt(0));

			//??§????????????true
			if(Character.isUpperCase(strB.charAt(0))) {
				Character.toLowerCase(strB.charAt(0));
				System.out.print(Character.toLowerCase(strB.charAt(0)));
			}
			//?°???????????????§???????????????
			else {
				if(strB == " " || strB == "," || strB == ".") {
					System.out.println(strB);
				}
				else {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				}
			}

		} strB = strA.substring(i,i+1) strB strA.substring(i,i+1) strA.substring strA i i+1 i 1 if(Character.isUpperCase(strB.charAt(0))) {
				Character.toLowerCase(strB.charAt(0));
				System.out.print(Character.toLowerCase(strB.charAt(0)));
			}
			//?°???????????????§???????????????
			else {
				if(strB == " " || strB == "," || strB == ".") {
					System.out.println(strB);
				}
				else {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				}
			} Character.isUpperCase(strB.charAt(0)) Character.isUpperCase Character strB.charAt(0) strB.charAt strB 0 {
				Character.toLowerCase(strB.charAt(0));
				System.out.print(Character.toLowerCase(strB.charAt(0)));
			} Character.toLowerCase(strB.charAt(0)) Character.toLowerCase Character strB.charAt(0) strB.charAt strB 0 System.out.print(Character.toLowerCase(strB.charAt(0))) System.out.print System.out System System.out Character.toLowerCase(strB.charAt(0)) Character.toLowerCase Character strB.charAt(0) strB.charAt strB 0 {
				if(strB == " " || strB == "," || strB == ".") {
					System.out.println(strB);
				}
				else {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				}
			} if(strB == " " || strB == "," || strB == ".") {
					System.out.println(strB);
				}
				else {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				} strB == " " || strB == "," || strB == "." strB == " " || strB == "," || strB == "." strB == " " strB " " strB == "," strB "," strB == "." strB "." {
					System.out.println(strB);
				} System.out.println(strB) System.out.println System.out System System.out strB {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				} Character.toUpperCase(strB.charAt(0)) Character.toUpperCase Character strB.charAt(0) strB.charAt strB 0 System.out.print(Character.toUpperCase(strB.charAt(0))) System.out.print System.out System System.out Character.toUpperCase(strB.charAt(0)) Character.toUpperCase Character strB.charAt(0) strB.charAt strB 0 System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main{
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String strB = "";

		String strA = sc.nextLine();
	//	System.out.println("??\?????????????????? : "+strA);
	//	System.out.println("");


		for(int i = 0; i < strA.length(); i++) {
			strB = strA.substring(i,i+1);

		//	System.out.println("strB.charAt(0) : "+strB.charAt(0));

			//??§????????????true
			if(Character.isUpperCase(strB.charAt(0))) {
				Character.toLowerCase(strB.charAt(0));
				System.out.print(Character.toLowerCase(strB.charAt(0)));
			}
			//?°???????????????§???????????????
			else {
				if(strB == " " || strB == "," || strB == ".") {
					System.out.println(strB);
				}
				else {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				}
			}

		}
		System.out.println("");
	}
} public class Main{
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String strB = "";

		String strA = sc.nextLine();
	//	System.out.println("??\?????????????????? : "+strA);
	//	System.out.println("");


		for(int i = 0; i < strA.length(); i++) {
			strB = strA.substring(i,i+1);

		//	System.out.println("strB.charAt(0) : "+strB.charAt(0));

			//??§????????????true
			if(Character.isUpperCase(strB.charAt(0))) {
				Character.toLowerCase(strB.charAt(0));
				System.out.print(Character.toLowerCase(strB.charAt(0)));
			}
			//?°???????????????§???????????????
			else {
				if(strB == " " || strB == "," || strB == ".") {
					System.out.println(strB);
				}
				else {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				}
			}

		}
		System.out.println("");
	}
} Main

import java.util.Scanner;

public class Main{
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String strB = "";

		String strA = sc.nextLine();
	//	System.out.println("??\?????????????????? : "+strA);
	//	System.out.println("");


		for(int i = 0; i < strA.length(); i++) {
			strB = strA.substring(i,i+1);

		//	System.out.println("strB.charAt(0) : "+strB.charAt(0));

			//??§????????????true
			if(Character.isUpperCase(strB.charAt(0))) {
				Character.toLowerCase(strB.charAt(0));
				System.out.print(Character.toLowerCase(strB.charAt(0)));
			}
			//?°???????????????§???????????????
			else {
				if(strB == " " || strB == "," || strB == ".") {
					System.out.println(strB);
				}
				else {
					Character.toUpperCase(strB.charAt(0));
					System.out.print(Character.toUpperCase(strB.charAt(0)));
				}
			}

		}
		System.out.println("");
	}
}