This page is still under construction.

Parts of this page are still being built. What you see may change.

Capitalize the First Letter

Time limit1sMemory limit128 MB

Summary
Read N sentences and print each one with its first letter changed to uppercase, leaving every other character as is.
Level

Easy1 of 10

Topics
String, Implementation
Solved
No attempts yet

Problem

You are given several sentences. Write a program that changes the first letter of each sentence to uppercase and prints the result. All other characters stay the same.

Input

The first line contains the number of sentences NN. Each of the next NN lines contains one sentence. Each sentence is at most 30 characters long, and the first character of every sentence is an alphabet letter.

Output

For each sentence, change its first letter to uppercase and print it, one sentence per line.

Examples2

  1. Example 1

    Input
    5
    powdered Toast Man
    skeletor
    Electra Woman and Dyna Girl
    she-Ra Princess of Power
    darth Vader
    
    Expected output
    Powdered Toast Man
    Skeletor
    Electra Woman and Dyna Girl
    She-Ra Princess of Power
    Darth Vader
    
  2. Example 2

    Input
    1
    Hello world
    
    Expected output
    Hello world