func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 5004;   int main() {     int a = 1, b = 1, n;     string s;     cin >> n;     while (n--) {       cin >> s;       if (s ==  UL  || s ==  DR )         ++a;       else if (s.size() == 2)         ++b;       else         ++a, ++b;     }     printf( %lld n , 1ll * a * b);   }   