func_code_string: #include <bits/stdc++.h>   using namespace std;   const int MOD = 1e9 + 7;   int main() {     int n;     long long a = 1, b = 1;     char s[10];     scanf( %d , &n);     for (int i = int(1); i <= int(n); ++i) {       scanf( %s , s);       if (strlen(s) == 4) {         a++;         b++;       } else {         if (s[0] ==  U  && s[1] ==  L ) b++;         if (s[0] ==  U  && s[1] ==  R ) a++;         if (s[0] ==  D  && s[1] ==  L ) a++;         if (s[0] ==  D  && s[1] ==  R ) b++;       }     }     cout << a * b << endl;   }   