import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		String output = "";
		String[] mozi = input.split(" ");
		String UpperAlpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
		String LowerAlpha = "abcdefghijklmnopqrstuvwxyz";
		int mozi_length = 0;

		int index1 = -1;
		int index2 = -1;
		for (int i = 0; i < mozi.length; i++) {
			mozi_length += mozi[i].length();
			if (i != 0) {
				output += " ";
			}
			for (int j = 0; j < mozi[i].length(); j++) {
				index1 = UpperAlpha.indexOf(mozi[i].charAt(j));
				index2 = LowerAlpha.indexOf(mozi[i].charAt(j));
				if (index1 == -1 && index2 == -1) {
					output += "" + mozi[i].charAt(j);
				} else if (index1 != -1) {
					output += "" + LowerAlpha.charAt(index1);

				} else if (index2 != -1) {
					output += "" + UpperAlpha.charAt(index2);
				}

			}
		}
		if (mozi_length < 1200) {
			System.out.println(output);
		}
	}

}


/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz