#include <iostream>
#include <string>
#include <ctype.h>
using namespace std;
int main() {
freopen("D:\\input.txt", "r", stdin);
freopen("D:\\output.txt", "w", stdout);
char s[10001];
string newtext = "";
int c = 0;
gets_s(s);
for (int i = 0; s[i] != '\0'; i++) {
if (s[i] == 'e' && s[i + 1] == 'n' && s[i + 2] == 'd') {
c += 3;
newtext += s[i];
newtext += " ";
newtext += s[i + 1];
newtext += " ";
newtext += s[i + 2];
break;
}
c++;
newtext += s[i];
newtext += " ";
}
cout << c << endl << newtext;
}
(-^〇^-)(=^▽^=)\(•ㅂ•)/♥(*¯︶¯*)ヘ( ̄ω ̄ヘ) ♪
Кодs могут быть разные, если кодом является номер символа в алфавите с "Ё" - ответ будет 6 4 16 18 19 6 18 5 32 12