#include #include #include #include #include #include #include #include #include #include #include #include //#include "toollib.h" #define INT_MAX 2147483647 #define Loop(i, n) for(int i = 0; i < (int)n; i++) #pragma warning (disable:4018) using namespace std; typedef long long int lint; //***** Main Program ***** int main() { lint N; cin >> N; for (lint i = 3; i < N; i++) { if (N%i == 0) { cout << i << endl; break; } } return 0; }