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: Accepted)

using System;
using System.Collections.Generic;
using System.Linq;

class Program {

    static int Main(string[] args) {
        //List<int> list = new List<int>();

        string v = Console.ReadLine();
        //string[] vs = v.Split(' ');

        string a = "abcdefghijklmnopqrstuvwxyz";
        string b = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

        string value = string.Empty;
        for (int i = 0; i < v.Length; i++) {
            string c = v.Substring(i, 1);
            int idx = a.IndexOf(c);
            if (idx >= 0) {
                value += b.Substring(idx, 1);
            }
            else {
                value += c;
            }
        }

        Console.WriteLine(value);

        return 0;
    }
}