#include <bits/stdc++.h>
using namespace std;
int main() {
	int a = 1e18, b = LONG_MAX;
	cout << a << ' ' << b << '\n';
}