#include <bits/stdc++.h>
using namespace std;
int N, M, K, d;
bool p[555], pn[555];
char l[555];
bool check() {
  int i;
  for (i = 1; i <= N; i++)
    if (p[i]) return true;
  return false;
}
int main(int argc, char *argv[]) {
  scanf("%d%d%d", &N, &M, &K);
  scanf("%s", l);
  scanf("%s", l);
  if (l[0] == 'h')
    d = -1;
  else
    d = 1;
  int i, j;
  for (i = 1; i <= N; i++) p[i] = false;
  p[M] = true;
  scanf("%s", l);
  for (i = 0; l[i] != '\0'; i++) {
    if (!check()) {
      printf("Controller %d\n", i);
      return 0;
    }
    if (l[i] == '0') {
      for (j = 1; j <= N; j++) pn[j] = false;
      for (j = 1; j <= N; j++)
        if (j != K && ((j < N && p[j + 1]) || (j > 1 && p[j - 1])))
          pn[j] = true;
      for (j = 1; j <= N; j++) p[j] = p[j] || pn[j];
    } else
      for (j = 1; j <= N; j++) p[j] = true;
    if (K + d == N + 1 || K + d == 0) d = -d;
    K += d;
    p[K] = false;
  }
  printf("Stowaway\n");
  return 0;
}
