text: #include <iostream>
  #include <string>
  using namespace std;
  
  void printMazePaths(int sr, int sc, int dr, int dc, string psf)
  {
      // write your code here
      if (sr == dr && sc == dc)
      {
          cout << psf << endl;
          return;
      }
  
      if (sc < dc)
      {
          printMazePaths(sr, sc + 1, dr, dc, psf + "h");
      }
  
      if (sr < dr)
      {
          printMazePaths(sr + 1, sc, dr, dc, psf + "v");
      }
  
      return;
  }
  
  int main()
  {
      int n;
      int m;
      cin >> n >> m;
      printMazePaths(0, 0, n - 1, m - 1, "");
  }