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