Algorithm


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
Copy
ApPLe
output
Copy
ApPLe
input
Copy
konjac
output
Copy
Konjac



 

Code Examples

#1 Code Example with C++ Programming

Code - C++ Programming

#include<iostream>
#include<string>
using namespace std;

int main(){
  string s;
  cin>>s;
  if(s[0] >= 97){

    s[0] = s[0] - 32;
  }
  cout<<s<<endl;
  return 0;
}
Copy The Code & Try With Live Editor

Input

x
+
cmd
ApPLe

Output

x
+
cmd
ApPLe
Advertisements

Demonstration


Codeforcess Solution 281-A A. Word Capitalization ,C++, Java, Js and Python,281-A,Codeforcess Solution

Previous
Codeforces solution 1080-B-B. Margarite and the best present codeforces solution
Next
CodeChef solution DETSCORE - Determine the Score CodeChef solution C,C+