#include<iostream>
#include<string>
using namespace std;
using mytype = pair<string, int>;
istream& operator>>(istream& is, mytype& m)
{
while(isalpha(is.peek()))
{
m.first.push_back(is.get());
}
is >> m.second;
return is;
}
ostream& operator<<(ostream& os, const mytype& m)
{
return os << m.first << m.second;
}
int main()
{
mytype mt;
cin >> mt;
cout << mt << endl;
}