#include <iostream>
using namespace std;
const int TEN = 10;
int main() {
int a, b, c;
cin >> a >> b >> c;
int copyA = a;
if (a < 0) {
a = -a;
}
if (b < 0) {
b = -b;
}
if (c < 0) {
c = -c;
}
int cifreB = 0;// Variabile pentru numărul de cifre
int cifreC = 0;
int cb = b;// Contorizăm cifrele lui b
if (cb == 0) {
cifreB = 1; // Dacă b este 0, considerăm că are o cifră
} else {
while (cb > 0) {
++cifreB;
cb /= TEN;
}
}
int cc = c;// Contorizăm cifrele lui c
if (cc == 0) {
cifreC = 1; // Dacă c este 0, considerăm că are o cifră
} else {
while (cc > 0) {
++cifreC;
cc /= TEN;
}
}
int i = 1;// Calculăm rez
int j = 1;
while (i <= cifreB) {
a *= TEN;
++i;
}
int rez = a + b;
while (j <= cifreC) {
rez *= TEN;
++j;
}
int rez2 = rez + c;
if (copyA < 0) { // Afișăm rezultatul ținând cont de semnul lui a
cout << -rez2 << " -" << rez2 * 2;
} else {
cout << rez2 << " " << rez2 * 2;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY29uc3QgaW50IFRFTiA9IDEwOwoKaW50IG1haW4oKSB7CiAgICBpbnQgYSwgYiwgYzsKICAgIGNpbiA+PiBhID4+IGIgPj4gYzsKICAgIGludCBjb3B5QSA9IGE7CiAgICBpZiAoYSA8IDApIHsKICAgICAgICBhID0gLWE7CiAgICB9CiAgICBpZiAoYiA8IDApIHsKICAgICAgICBiID0gLWI7CiAgICB9CiAgICBpZiAoYyA8IDApIHsKICAgICAgICBjID0gLWM7CiAgICB9CiAgICBpbnQgY2lmcmVCID0gMDsvLyBWYXJpYWJpbGUgcGVudHJ1IG51bcSDcnVsIGRlIGNpZnJlIAogICAgaW50IGNpZnJlQyA9IDA7CiAgICBpbnQgY2IgPSBiOy8vIENvbnRvcml6xINtIGNpZnJlbGUgbHVpIGIgCiAgICBpZiAoY2IgPT0gMCkgewogICAgICAgIGNpZnJlQiA9IDE7IC8vIERhY8SDIGIgZXN0ZSAwLCBjb25zaWRlcsSDbSBjxIMgYXJlIG8gY2lmcsSDICAKICAgIH0gZWxzZSB7CiAgICAgICAgd2hpbGUgKGNiID4gMCkgewogICAgICAgICAgICArK2NpZnJlQjsKICAgICAgICAgICAgY2IgLz0gVEVOOwogICAgICAgIH0KICAgIH0KICAgIGludCBjYyA9IGM7Ly8gQ29udG9yaXrEg20gY2lmcmVsZSBsdWkgYyAKICAgIGlmIChjYyA9PSAwKSB7CiAgICAgICAgY2lmcmVDID0gMTsgLy8gRGFjxIMgYyBlc3RlIDAsIGNvbnNpZGVyxINtIGPEgyBhcmUgbyBjaWZyxIMgIAogICAgfSBlbHNlIHsKICAgICAgICB3aGlsZSAoY2MgPiAwKSB7CiAgICAgICAgICAgICsrY2lmcmVDOwogICAgICAgICAgICBjYyAvPSBURU47CiAgICAgICAgfQogICAgfQogICAgaW50IGkgPSAxOy8vIENhbGN1bMSDbSByZXogCiAgICBpbnQgaiA9IDE7CiAgICB3aGlsZSAoaSA8PSBjaWZyZUIpIHsKICAgICAgICBhICo9IFRFTjsKICAgICAgICArK2k7CiAgICB9CiAgICBpbnQgcmV6ID0gYSArIGI7CiAgICB3aGlsZSAoaiA8PSBjaWZyZUMpIHsKICAgICAgICByZXogKj0gVEVOOwogICAgICAgICsrajsKICAgIH0KICAgIGludCByZXoyID0gcmV6ICsgYzsKICAgIGlmIChjb3B5QSA8IDApIHsgIC8vIEFmaciZxINtIHJlenVsdGF0dWwgyJtpbsOibmQgY29udCBkZSBzZW1udWwgbHVpIGEgCiAgICAgICAgY291dCA8PCAtcmV6MiA8PCAiIC0iIDw8IHJlejIgKiAyOwogICAgfSBlbHNlIHsKICAgICAgICBjb3V0IDw8IHJlejIgPDwgIiAiIDw8IHJlejIgKiAyOwogICAgfQogICAgcmV0dXJuIDA7Cn0=