#include <iostream>
#include <vector>
using namespace std;
int main() {
std::string progid;
std::string clsid;
vector<std::pair<std::string,std::string>> ids;
while(cin >> progid >> clsid ) {
auto id = std::make_pair(progid,clsid);
ids.push_back(id);
}
for(std::vector<std::pair<std::string,std::string>>::iterator it = ids.begin(); it != ids.end(); ++it) {
progid = it->first;
clsid = it->second;
std::cout << "progid:" << it->first << " clsid:" << it->second <<endl;
//std::cout << *(it.first) <<endl;
}
return 0;
}