#include <bits/stdc++.h>
int n, m, k;
bool dir;
int main() {
  char buffer[65536];
  scanf("%d%d%d%*s%s", &n, &m, &k, buffer);
  m--;
  k--;
  if (k == 0) {
    dir = false;
  } else if (k == n - 1) {
    dir = true;
  } else {
    dir = buffer[0] == 't';
  }
  scanf("%s", buffer);
  int l = (int)strlen(buffer), T;
  bool win = false;
  for (T = 0; T < l - 1; T++) {
    if (buffer[T] == '0') {
      m = m < k ? 0 : n - 1;
      if (k + (dir ? 1 : -1) < 0 || k + (dir ? 1 : -1) >= n) {
        dir = !dir;
      }
      k += dir ? 1 : -1;
    } else {
      if (k + (dir ? 1 : -1) < 0 || k + (dir ? 1 : -1) >= n) {
        dir = !dir;
      }
      k += dir ? 1 : -1;
      m = dir ? 0 : n - 1;
    }
    if (m == k) {
      win = true;
      break;
    }
  }
  if (win) {
    printf("Controller %d\n", T + 1);
  } else {
    puts("Stowaway");
  }
  return 0;
}
