#include <stdio.h>

int S[1000],T[500],A[1000];
int left = 0,right,key,count = 0;

int main(){

  int mid;
  
  scanf("%d", &key);

  while(left < right) {
        mid = (left + right) / 2;
        if (A[mid] == key) {
	  count ++;
            return mid;
        } else if (key < A[mid]) {
            right = mid; 
        } else {
            left = mid + 1; 
        }
    }

  printf("%d\n",count);

  return 0;
}