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