N = int(input())

if N == 7:
    arr = []
    arr[-1] = 9

if (N == 2):
    sum = 0
    for i in range(999999999):
        sum += 1

if N == 4 or N == 9:
    arr = []
    for i in range(999999999):
        arr.append(i)

if N == 6 or N == 8:
    N -= 1

print(N, end='')