#include<iostream>
#include<algorithm>
#include<cstring>
#include<cstdio>
#include<map>
#include<vector>
#include<set>
#include<queue>
#include<stack>
#include<cmath>
using namespace std;
typedef long long ll;
typedef pair<int, int> PII;
const int inf = 0x3f3f3f3f;
const int N = 1000005, M = 103, mod = 1e9 + 7;
const double eps = 1e-8;
int main()
{
for (int i = 1; i; i++)
{
int res = 0;
for (int n = 1; n; n++)
{
res += n + i - 1;
if (res == 236)
{
cout << i << ' ' << n;
return 0;
}
if (res > 235)
break;
}
}
return 0;
}