#include <cstdio>
int main()
{
freopen("apbtest.in", "r", stdin);
freopen("apbtest.out", "w", stdout);
int n, x = 0, inf = (int)1e9;
scanf("%d", &n);
if (n > inf)
x = inf;
else if (n < -inf)
x = -inf;
else
x = 0;
printf("%d %d\n", x, n - x);
return 0;
}