#include<stdio.h> int main() { char a[80]; int i; gets(a); for(i=0;a[i]!='\0';i++) { if(a[i]>='A'&&a[i]<='Z') continue; if(a[i]==' '||a[i]==','||a[i]=='.'&&(a[i+1]>='a'&&a[i+1]<='z')) a[i+1]=a[i+1]-32; } puts(a); return 0; }