#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, d, m, n, i, j, k, l, t, s, x, y, z;
  long long ans = 0;
  long long maxi = 0, mini = 0, sum = 0, mul = 1;
  x = 0;
  string st, tt, ch;
  cin >> n >> s >> c;
  cin >> tt >> ch;
  cin >> st;
  d = 0;
  l = st.size();
  a = ch.size();
  if (ch[0] == 'h')
    x = 1;
  else
    x = 0;
  for (i = 0; i < l; i++) {
    if (st[i] == '0') {
      ans++;
      if (c < s) {
        if (s != n) s++;
      } else if (c > s) {
        if (s != 1) s--;
      }
      if (x == 1) {
        c--;
        if (c == 1) x = 0;
      } else {
        c++;
        if (c == n) x = 1;
      }
      if (c == s) {
        d = 1;
        cout << "Controller ";
        break;
      }
    } else {
      ans++;
      if (i == l - 1) {
        d = 0;
        break;
      }
      if (x == 1) {
        s = n;
        c--;
        if (c == 1) x = 0;
      } else if (x == 0) {
        s = 1;
        c++;
        if (c == n) x = 1;
      }
    }
  }
  if (d == 0)
    cout << "Stowaway" << endl;
  else
    cout << ans << endl;
  return 0;
}
