#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c1, h2, a2, phasesNumber = 0;
  string heal = "HEAL", attack = "STRIKE";
  vector<string> outputVector;
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  while (true) {
    phasesNumber++;
    if ((h1 - a2) <= 0 && (h2 - a1) > 0) {
      h1 += c1;
      h1 -= a2;
      outputVector.push_back(heal);
      continue;
    }
    h1 -= a2;
    h2 -= a1;
    outputVector.push_back(attack);
    if (h2 <= 0) {
      break;
    }
  }
  cout << phasesNumber << endl;
  for (int i = 0; i < outputVector.size(); i++)
    cout << outputVector.at(i) << endl;
  return 0;
}
