n = int(input()) sequence = [7, 6, 5, 4, 5, 6, 7, 8, 9, 10] print(sequence[n-1])