s = gets.chomp if s[0] == '-' puts 0 else ans = s[..-3] puts ans.empty? ? 0 : ans end