#include <iostream>
using namespace std;
int main (void) {
string str1 = "To be or not to be, that is the question";
string str2 = "only ";
string str3 = str1.substr(6, 12);
str1.insert(32, str2);
str1.replace(str1.find("to be", 0), 5, "to jump");
str1.erase(9, 4);
cout << str1 << endl;
for (int i = 0; i < str3.length(); i++)
cout << str3[i]; cout << endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4gKHZvaWQpIHsKIHN0cmluZyBzdHIxID0gIlRvIGJlIG9yIG5vdCB0byBiZSwgdGhhdCBpcyB0aGUgcXVlc3Rpb24iOwogc3RyaW5nIHN0cjIgPSAib25seSAiOwogc3RyaW5nIHN0cjMgPSBzdHIxLnN1YnN0cig2LCAxMik7CiBzdHIxLmluc2VydCgzMiwgc3RyMik7CiBzdHIxLnJlcGxhY2Uoc3RyMS5maW5kKCJ0byBiZSIsIDApLCA1LCAidG8ganVtcCIpOwogc3RyMS5lcmFzZSg5LCA0KTsKIGNvdXQgPDwgc3RyMSA8PCBlbmRsOwogZm9yIChpbnQgaSA9IDA7IGkgPCBzdHIzLmxlbmd0aCgpOyBpKyspCiBjb3V0IDw8IHN0cjNbaV07IGNvdXQgPDwgZW5kbDsKfQ==