read *,N if(N.ge.15) then print '(i0)',N-7 else print '(i0)',-1 end if end program