func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     long long n, i, j, r, mn, mx, x, cnt = 0, a = 1, b = 1;     string s;     cin >> n;     for (i = 0; i < n; i++) {       cin >> s;       if (s ==  UR  || s ==  DL )         a++;       else if (s ==  UL  || s ==  DR )         b++;       else {         a++, b++;       }     }     cout << a * b << endl;     return 0;   }   