#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, healing;
  cin >> h1 >> a1 >> healing;
  int mh, ma;
  cin >> mh >> ma;
  vector<string> snc;
  while (mh > 0) {
    if (a1 >= mh) {
      snc.push_back("STRIKE\n");
      break;
    }
    if (h1 <= ma) {
      snc.push_back("HEAL\n");
      h1 += healing;
    } else {
      snc.push_back("STRIKE\n");
      mh -= a1;
    }
    h1 -= ma;
  }
  cout << snc.size() << "\n";
  for (int i = 0; i < (int)snc.size(); i++) {
    cout << snc[i];
  }
  return 0;
}
