#include<stdio.h> int main() { int n; scanf("%d", &n); int x = n ; while(n--) { if(n % x == 0) { printf("%d", x); break; } } return 0;