python/2024.7.5.2.py

5 lines
88 B
Python

n=int(input(''))
for i in range(n-1,1,-1):
if n%i==0:
print(i)
break