#include <bits/stdc++.h>
using namespace std;
int h1, a1, c1;
int h2, a2;
string st[10000000];
int nst = 0;
int main() {
  cin >> h1 >> a1 >> c1;
  cin >> h2 >> a2;
  while (h2 > 0) {
    nst++;
    if (h1 > a2 || a1 >= h2) {
      h2 = h2 - a1;
      st[nst] = "STRIKE";
      if (h2 == 0) break;
      h1 = h1 - a2;
    } else {
      st[nst] = "HEAL";
      h1 = h1 + c1;
      h1 = h1 - a2;
    }
  }
  cout << nst << endl;
  for (int i = 1; i <= nst; i++) {
    cout << st[i] << endl;
  }
  cin >> h1;
  return 0;
}
