main(i){char s[99],c;for(;gets(s);puts(""))for(i=0;c=s[i];)printf("%s%c",s[++i+1]-80&&c==73||c>90?"":" ",c+(c<90)*32);}