#include #include int main(){ int c = 0; char text[256]; while(1){ char ch; int num = 'a' - 'A'; scanf("%c", &ch); if(ch == EOF || ch == -1){ break; } c++; if(ch <= 'A' && ch >= 'Z'){ ch += num; c--; } else if(ch >= 'a' && ch <= 'z'){ ch -= num; c--; } text[c] = ch; } printf("%d\n", strlen(text)); for(int i = 0; i < c; i++){ if(text[i] != '\n'){ printf("%c\n", text[i]); } else{ printf("\n"); } } printf("%d\n", c); }