#include <iostream>
using namespace std;
const int TEN = 10;
int main() {
int no, discountCode;
cin >> no >> discountCode;
const int COPY_NO = no;
while (no > 0) {
discountCode *= TEN;
no /= TEN;
}
cout << discountCode + COPY_NO << " " << (discountCode + COPY_NO) * 2;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY29uc3QgaW50IFRFTiA9IDEwOwoKaW50IG1haW4oKSB7CiAgaW50IG5vLCBkaXNjb3VudENvZGU7CiAgY2luID4+IG5vID4+IGRpc2NvdW50Q29kZTsKICBjb25zdCBpbnQgQ09QWV9OTyA9IG5vOwogIHdoaWxlIChubyA+IDApIHsKICAgIGRpc2NvdW50Q29kZSAqPSBURU47CiAgICBubyAvPSBURU47CiAgfQogIGNvdXQgPDwgZGlzY291bnRDb2RlICsgQ09QWV9OTyA8PCAiICIgPDwgKGRpc2NvdW50Q29kZSArIENPUFlfTk8pICogMjsKICByZXR1cm4gMDsKfQ==