import strutils, sequtils, math, algorithm let A = stdin.readline.parseInt echo(if A - 7 <= 7: -1 else: A - 7)