/*
11 brcdbr
Am incercat sa reconstruiesc codul sursa.
*/
int main() {
char s[13] = "", t[13] = "";
strcpy(s, "abracadabra");
size_t i = 0;
std::cout << strlen(s);
while (i < strlen(s))
if (s[i] == 'a') {
strcpy(t, s + i + 1);
strcpy(s + i, t);
}
else
i = i + 1;
std::cout << ' ' << s;
}