a,b;main(){while(~(b=getchar()))if(a&&a-10||b-32){if(a&&(a-32||b-10&&b-32))putchar(a);a=b;}}