func_code_string: #include <bits/stdc++.h>   using namespace std;   char op[20];   char s[205];   int main() {     int n, m, k;     scanf( %d%d%d , &n, &m, &k);     getchar();     cin.getline(op, 15);     int dir;     if (op[3] ==  h ) {       dir = 0;     } else {       dir = 1;     }     scanf( %s , s);     int dir2 = m < k ? 0 : 1;     int len = strlen(s);     bool flag = false;     int t = 0;     for (int i = 0; i < len; ++i) {       ++t;       int lastk = k;       if (dir == 0) {         --k;         if (k == 0) k = 2, dir = 1;       } else {         ++k;         if (k == n + 1) k = n - 1, dir = 0;       }       if (s[i] ==  0 ) {         if (dir == 0) {           if (m > lastk && m < n)             ++m;           else if (m < lastk && m > 1)             --m;         } else {           if (m < lastk && m > 1)             --m;           else if (m > lastk && m < n)             ++m;         }       } else if (i != len - 1) {         if (dir == 0)           m = n;         else           m = 1;       }       if (m == k && i != len - 1) {         flag = true;         break;       }     }     if (!flag) {       puts( Stowaway );     } else {       printf( Controller %d n , t);     }     return 0;   }   