print$_>14?$_-7:-1for<>