a = int(input()) - 17 if a < 0: a = -1 print(a)