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 C (judge verdict: Time Limit Exceeded)

#include <stdio.h>
#include <string.h>

int main(void)
{
	int i;
	char str[100];
	
	while (1){
		scanf("%s", str);
		if (strcmp(str, "END_OF_TEXT") == 0){
			break;
		}
		
		for (i = 0; str[i] != '\0'; i++){
			if (str[i] >= 'A' && str[i] <= 'Z'){
				str[i] += 'a' - 'A';
			}
			else if (str[i] >= 'a' && str[i] <= 'z'){
				str[i] -= 'a' - 'A';
			}
		}
	}
	
	printf("%s\n", str);
	
	return (0);
}