#include<iostream>
using namespace std;
int main() {
int s1 = 0, s2 = 0, i1 = 1, i2 = 1;
s1 += i1++;
s2 += ++i2;
cout << s1 << s2 << i1 << i2;
return 0;
}
#include<iostream>
using namespace std;
int main() {
float n, ans = 0, step = 0.1;
cin >> n;
while (step < n) {
ans += step;
step += 0.1;
}
cout << ans << endl;
return 0;
}
#include<iostream>
using namespace std;
int main() {
int n;
double s = 0;
cin >> n;
for (double i = 0; i + 0.000001 < n; i += 0.1) {
s += i;
}
cout << s;
return 0;
}
#include<iostream>
using namespace std;
int main() {
int n;
double s = 0;
cin >> n;
for (double i = 0; i < 10 * n; ++i) {
s += i;
}
cout << (s / 10);
return 0;
}
#include<iostream>
using namespace std;
int main() {
int L, load = 0, ans = 0;
cin >> L;
for (int i = 2;; i++) {
int is_prime = 1;
for (int j = 2; j * j <= i; j++)
if (i % j == 0) {
is_prime = 0;
break;
}
if (!is_prime) continue;
if (i + load > L) break;
cout << i << endl;
ans ++; load += i;
}
cout << ans;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
return b == 0 ? a : gcd(b, a % b);
}
int main() {
int t; cin >> t;
while (t--) {
int n, cnt = 1;
cin >> n;
while (n >= cnt) {
n -= cnt;
cnt ++;
}
if (n == 0) {
cout << 1 << endl;
}
else {
cout << cnt / gcd(cnt, n);
}
}
return 0;
}