#include <bits/stdc++.h>
using namespace std;
int h2, h1, a1, c1, a2, nr;
vector<int> v;
void strike() {
  h2 = h2 - a1;
  h1 = h1 - a2;
  v.push_back(2);
}
void heal() {
  h1 = h1 + c1;
  h1 = h1 - a2;
  v.push_back(1);
}
int main() {
  cin >> h1 >> a1 >> c1;
  cin >> h2 >> a2;
  while (h2 > 0) {
    if (((h1 - a2) > 0 && (h1 - a2 + c1) > a2) or a1 >= h2) {
      strike();
    } else
      heal();
    nr++;
  }
  cout << nr << endl;
  int i;
  for (i = 0; i < v.size(); i++) {
    if (v.at(i) == 1) {
      cout << "HEAL" << endl;
    }
    if (v.at(i) == 2) {
      cout << "STRIKE" << endl;
    }
  }
  return 0;
}
