      PROGRAM ABC178A
      IMPLICIT NONE
      INTEGER,PARAMETER :: prec = 16
      integer :: x
      
      read*,x
      if( x==1 )then
        print*,'0'
      else
        print*,'1'
      end if
      
      
      
      stop
      !debugg
      
      
      
      END PROGRAM