#include <bits/stdc++.h>
int main(void) {
  int i, j, n;
  int sosuu = 0;
  for (i = 0; i < 8; i++) {
    printf("ready?");
    scanf("%d", &n);
    if ((n % 2) == 1) sosuu++;
    if (n == 2) sosuu++;
  }
  printf("%d", sosuu);
  while (1) return 0;
}
