#include <iostream>
#include <string>
using namespace std;

int main() {
	string s = "12345road12345";
	for (int i = 0; i < s.length(); i++)
	{
		if (s[i] == 'r')
			if (s[i + 1] == 'o')
				if (s[i + 2] == 'a')
					if (s[i + 3] == 'd')
						cout << " ";
		cout << s[i];
		if (s[i] == 'd')
			if (s[i - 1] == 'a')
				if (s[i - 2] == 'o')
					if (s[i - 3] == 'r')
						cout << " ";
	}
	return 0;
}