main = getLine >>= print . (2017 -) . read