import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int AGE = sc.nextInt(); if (AGE >= 15) { System.out.println(AGE - 7); } else { System.out.println(-1); } } }