input = gets result = input-2017 puts result