#include <iostream>
using namespace std;
int main() {
string nume, prenume, numeComplet;
cin >> nume >> prenume;
numeComplet = nume + " " + prenume;
for (int i = 0; i <= prenume.size(); ++i) {
numeComplet.pop_back();
}
cout << numeComplet;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglzdHJpbmcgbnVtZSwgcHJlbnVtZSwgbnVtZUNvbXBsZXQ7CgljaW4gPj4gbnVtZSA+PiBwcmVudW1lOwoJbnVtZUNvbXBsZXQgPSBudW1lICsgIiAiICsgcHJlbnVtZTsKCWZvciAoaW50IGkgPSAwOyBpIDw9IHByZW51bWUuc2l6ZSgpOyArK2kpIHsKCQludW1lQ29tcGxldC5wb3BfYmFjaygpOwoJfQoJY291dCA8PCBudW1lQ29tcGxldDsKCXJldHVybiAwOwp9