#include <bits/stdc++.h>
using namespace std;
int heath;
int drinkPot(int p, int c) {
  p += c;
  return p;
}
int main() {
  int h1, a1, c1, h2, a2;
  cin >> heath >> a1 >> c1;
  h1 = heath;
  cin >> h2 >> a2;
  string resp = "";
  int cont = 0;
  while (true) {
    cont++;
    if (a1 >= h2) {
      h2 -= a1;
      resp += "STRIKE\n";
    } else if (a2 >= h1) {
      h1 = drinkPot(h1, c1);
      resp += "HEAL\n";
    } else {
      h2 -= a1;
      resp += "STRIKE\n";
    }
    if (h2 <= 0) break;
    h1 -= a2;
  }
  cout << cont << endl << resp;
  return 0;
}
