func_code_string: #include <bits/stdc++.h>   using namespace std;   struct crew {     string name;     string pos;   };   int main() {     ios::sync_with_stdio(false);     cin.tie(0);     int n;     cin >> n;     vector<crew> a(n);     for (int i = 0; i < n; i++) cin >> a[i].name >> a[i].pos;     for (int i = 0; i < n; i++) {       if (a[i].pos ==  rat ) cout << a[i].name <<   n ;     }     for (int i = 0; i < n; i++) {       if (a[i].pos ==  child  || a[i].pos ==  woman ) cout << a[i].name <<   n ;     }     for (int i = 0; i < n; i++) {       if (a[i].pos ==  man ) cout << a[i].name <<   n ;     }     for (int i = 0; i < n; i++) {       if (a[i].pos ==  captain ) cout << a[i].name <<   n ;     }     return 0;   }   