#include #include #include #include #include #include #include #include #include #include #include using ll = long long; using namespace std; int main(){ int n, k, ans = 1; cin >> n >> k; for (int i = 2; i*i <= n; i++) { if (!(n%i)) ans = max(ans, n/i); } cout << ans << endl; }