Problem:
Capitalize

Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.

Input

A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.

Output

Print the converted text.

Sample Input

this is a pen.

Output for the Sample Input

THIS IS A PEN.

Solution in JAVA (judge verdict: Accepted)


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException{

		String strLine ="";
		BufferedReader stdReader =
				new BufferedReader(new InputStreamReader(System.in));
		int maxDataSize = 200;

		int argsCnt = 0;
		char[] dataSet = new char[maxDataSize];


		while ( ((strLine = stdReader.readLine()) != null)) {
			break;
		}

		byte[] asciiArray = strLine.getBytes("US-ASCII");

		for (int i = 0; i < asciiArray.length; i++) {

			if((asciiArray[i] >=  'a') && (asciiArray[i] <='z')){
				byte b = 32;
				asciiArray[i] = (byte)(Byte.toUnsignedInt(asciiArray[i]) -32);
			}


	}
		String resultString = new String(asciiArray, "US-ASCII");
		System.out.println(resultString);
	}

}