#include <stdio.h>
int main() {
char a[10];
scanf("%s",a);
for(int i=0;a[i]!='\0';i++){
if(a[i]>='a' && a[i]<='z'){
if(i % 2 == 0){
a[i] = a[i] - ('a' - 'A');// a=97 A=65 ..-32 then all letters become small
}
}
}
printf("%s",a);
}
To embed this program on your website, copy the following code and paste it into your website's HTML: