# It's impossible not to know the dice game. Please, write a 
# program that will imitate a roll of one of the dice with the help
# of an appropriate random function.

# Thus, your task is just to generate one integer in the range from
# 1 to 6 and print it.

import random

# this line is needed for us to check the results, don't modify it
random.seed(int(input()))

# use a function from the random module in the next line
print(random.randrange(1, 7))
# It's impossible not to know the dice game. Please, write a 
# program that will imitate a roll of one of the dice with the help
# of an appropriate random function.

# Thus, your task is just to generate one integer in the range from
# 1 to 6 and print it.

import random

# this line is needed for us to check the results, don't modify it
random.seed(int(input()))

# use a function from the random module in the next line
print(random.randrange(1, 7))
# It's impossible not to know the dice game. Please, write a # program that will imitate a roll of one of the dice with the help # of an appropriate random function. # Thus, your task is just to generate one integer in the range from # 1 to 6 and print it. # this line is needed for us to check the results, don't modify it # use a function from the random module in the next line