You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
369 B

#include <bits/stdc++.h>
using namespace std;
int n;
bool check(int x) {
int cnt = 0;
for (int i = 1; i <= x; i++)
if (x % i == 0) cnt++;
return cnt == n;
}
int main() {
cin >> n;
for (int i = 3; i <= 100; i++) {
if (check(i)) {
printf("%d", i);
return 0;
}
}
return 0;
}