# The predefined sequence sequence = [7, 5, 5, 3, 5, 4, 3, 6, 8, 5] # Read input n = int(input()) # Output the corresponding value (adjusting for 0-based index) print(sequence[n - 1])