#include <iostream>
#include <math.h>
#include<bits/stdc++.h>

using namespace std;

int main(){
    string str;
    while(getline(cin,str)){
        
        str[0]=toupper(str[0]);
        for(int i=0;i<str.size();i++){
            if(!isalpha(str[i])&&!isalnum(str[i])){
               str[i+1]= toupper(str[i+1]);
            }
        }
        cout<<str<<endl;
    }
    return 0;
}