#CODECHEF FEBRUARY LONG CHALLENGE DIVISOR
try:
    n = int(input())
    for i in range(10,0,-1):
        if n % i==0:
            print(i)
            break
except EOFError as e:
    pass
72233b9c9261b82b15a6a281f456d92999fe0f9d
<mask token>

try:
    n = int(input())
    for i in range(10, 0, -1):
        if n % i == 0:
            print(i)
            break
except EOFError as e:
    pass

#CODECHEF FEBRUARY LONG CHALLENGE DIVISOR
try:
    n = int(input())
    for i in range(10,0,-1):
        if n % i==0:
            print(i)
            break
except EOFError as e:
    pass