#include <iostream>
#include <string>
using namespace std;
int main() {
string userInput;
getline(cin, userInput);
/* Your solution goes here */
for (int i = 0; i + 4 <= userInput.size(); i++) {
if (userInput.substr(i, 4) == "darn") {
cout << "Censored\n";
return 0;
}
}
cout << userInput << endl;
return 0;
}
Comments
Leave a comment