#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;
}