#include using namespace std; int main() { int a, b, c, d, e; cin >> a >> b >> c >> d >> e; int broj = e * 100 + d * 10 + c; cout << broj << " " << broj * 2 << endl; return 0; }