-- Try yukicoder -- author: Leonardone @ NEETSDKASU main = print . solve . read =<< getLine where solve x = if x < 15 then -1 else x - 7