program main implicit none integer::N read *,N print '(i0)', 2017-N end program main