open System let s : String array = Console.ReadLine().Split(' ') let a : int = int(s.[0]) printfn "%i" (2017 - a)