#include <iostream>
#include <string>
#include <map>
int main()
{
std::map<std::string /*name*/, double /*value*/> vals;
std::string cmd;
while(std::cin >> cmd && cmd != "exit")
{
if(cmd == "store")
{
double v;
std::string name;
if(std::cin >> v >> name)
{
vals[name] = v;
}
}
else if(cmd == "recall")
{
std::string name;
if(std::cin >> name)
{
std::cout << vals[name] << std::endl;
}
}
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8bWFwPgoKaW50IG1haW4oKQp7CiAgICBzdGQ6Om1hcDxzdGQ6OnN0cmluZyAvKm5hbWUqLywgZG91YmxlIC8qdmFsdWUqLz4gdmFsczsKICAgIHN0ZDo6c3RyaW5nIGNtZDsKICAgIHdoaWxlKHN0ZDo6Y2luID4+IGNtZCAmJiBjbWQgIT0gImV4aXQiKQogICAgewogICAgICAgIGlmKGNtZCA9PSAic3RvcmUiKQogICAgICAgIHsKICAgICAgICAgICAgZG91YmxlIHY7CiAgICAgICAgICAgIHN0ZDo6c3RyaW5nIG5hbWU7CiAgICAgICAgICAgIGlmKHN0ZDo6Y2luID4+IHYgPj4gbmFtZSkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgdmFsc1tuYW1lXSA9IHY7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgZWxzZSBpZihjbWQgPT0gInJlY2FsbCIpCiAgICAgICAgewogICAgICAgICAgICBzdGQ6OnN0cmluZyBuYW1lOwogICAgICAgICAgICBpZihzdGQ6OmNpbiA+PiBuYW1lKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBzdGQ6OmNvdXQgPDwgdmFsc1tuYW1lXSA8PCBzdGQ6OmVuZGw7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9Cn0=