using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); Console.WriteLine(2017 -n); } }