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