using System; using System.Linq; public class Program { public static void Main() { const int MIN = 8 + 7; int age = int.Parse(Console.ReadLine()); Console.WriteLine(age >= MIN ? age - 7 : -1); } }