#include <iostream>
#include <string>
using namespace std;
int main() {
std::string str = "123456789";
cout << sizeof(std::string) << " " << str.capacity() << endl;
str.erase(4);
cout << str << " " << str.size() << ' ' << str.capacity();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmludCBtYWluKCkgewoJc3RkOjpzdHJpbmcgc3RyID0gIjEyMzQ1Njc4OSI7Cgljb3V0IDw8IHNpemVvZihzdGQ6OnN0cmluZykgPDwgIiAiIDw8IHN0ci5jYXBhY2l0eSgpIDw8IGVuZGw7CglzdHIuZXJhc2UoNCk7Cgljb3V0IDw8IHN0ciA8PCAiICIgPDwgc3RyLnNpemUoKSA8PCAnICcgPDwgc3RyLmNhcGFjaXR5KCk7CgkKCglyZXR1cm4gMDsKfQ==