codeforces 281A Word Capitalization

A. Word Capitalization
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

Capitalization is writing a word with its first letter as a capital letter. Your task is to capitalize the given word.

Note, that during capitalization all the letters except the first one remains unchanged.

Input

A single line contains a non-empty word. This word consists of lowercase and uppercase English letters. The length of the word will not exceed 103.

Output

Output the given word after capitalization.

Examples
Input
ApPLe
Output
ApPLe
Input
konjac
Output
Konjac



AC:

#include<bits/stdc++.h>

using namespace std;
int main()
{
    char p[1010];
    scanf("%s",p);
    if(p[0]>='a'&&p[0]<='z')
        p[0]-=32;
    printf("%s\n",p);
}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章