#include <bits/stdc++.h>
using namespace std;
int main() {
map<string, int> myMap;
myMap["ratul"] = 2;
myMap["apple"] = 1;
myMap["cherry"] = -8;
myMap.insert({"ratul",22});
cout << myMap["ratul"] << endl;
myMap["ratul"] = 22;
cout << myMap["ratul"] << endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCW1hcDxzdHJpbmcsIGludD4gbXlNYXA7CglteU1hcFsicmF0dWwiXSA9IDI7CglteU1hcFsiYXBwbGUiXSA9IDE7CglteU1hcFsiY2hlcnJ5Il0gPSAtODsKCglteU1hcC5pbnNlcnQoeyJyYXR1bCIsMjJ9KTsKCWNvdXQgPDwgbXlNYXBbInJhdHVsIl0gPDwgZW5kbDsKCW15TWFwWyJyYXR1bCJdID0gMjI7CiAgICBjb3V0IDw8IG15TWFwWyJyYXR1bCJdIDw8IGVuZGw7CglyZXR1cm4gMDsKfQ==