#include <iostream>
using namespace std;

int main() {
	int a = 1000000000;
    int b = 999999999;
    int c = 999999998;
    
    long long result1 = a + b + c;
    long long result2 = 1LL * a + 1LL * b + 1LL * c;
    cout << result1 << " " << result2;
	return 0;
}