func_code_string: #include <bits/stdc++.h>   using namespace std;   long long solve() {     string x[12] = { C ,   C# ,  D ,   D# ,  E ,  F ,                      F# ,  G ,   G# ,  A ,   B ,  H };     map<string, long long> m;     for (long long i = 0; i < 12; ++i) {       m[x[i]] = i;     }     long long q[3];     string a, b, c;     cin >> a >> b >> c;     q[0] = m[a];     q[1] = m[b];     q[2] = m[c];     sort(q, q + 3);     do {       if ((q[0] + 4) % 12 == q[1] % 12 && (q[1] + 3) % 12 == q[2] % 12) {         cout <<  major ;         return 0;       }       if ((q[0] + 3) % 12 == q[1] % 12 && (q[1] + 4) % 12 == q[2] % 12) {         cout <<  minor ;         return 0;       }     } while (next_permutation(q, q + 3));     cout <<  strange ;   }   signed main() {     ios::sync_with_stdio(false);     long long t = 1;     while (t--) solve();     return 0;   }   