func_code_string: #include <bits/stdc++.h>   int main() {     int i, j;     int str[6];     int num[6];     char ch;     for (i = 0; i < 6; i++) {       str[i] = 0;       num[i] = 0;     }     for (i = 0; i < 6; i++) {       scanf( %c , &ch);       switch (ch) {         case  R :           str[0]++;           break;         case  O :           str[1]++;           break;         case  Y :           str[2]++;           break;         case  G :           str[3]++;           break;         case  B :           str[4]++;           break;         case  V :           str[5]++;           break;       }     }     for (j = 0; j < 6; j++) {       num[str[j]]++;     }     switch (num[0]) {       case 0:         printf( 30 n );         break;       case 1:         printf( 15 n );         break;       case 2:         switch (num[1]) {           case 2:             printf( 8 n );             break;           case 3:             printf( 5 n );             break;         }         break;       case 3:         switch (num[1]) {           case 2:             printf( 2 n );             break;           case 1:             printf( 3 n );             break;           case 0:             printf( 6 n );             break;         }         break;       case 4:         switch (num[1]) {           case 1:             printf( 1 n );             break;           case 0:             printf( 2 n );             break;         }         break;       case 5:         printf( 1 n );         break;     }   }   