#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c1, h2, a2, p, q, s = 0, t, r, u, v, i, j, k;
  cin >> h1 >> a1 >> c1;
  cin >> h2 >> a2;
  q = ceil(h2 / (a1 * 1.0));
  p = ceil(h1 / (a2 * 1.0));
  while (q > p) {
    h1 = h1 + (c1 - a2);
    p = ceil(h1 / (a2 * 1.0));
    s++;
  }
  cout << s + q << endl;
  for (int i = 1; i <= s; i++) {
    cout << "HEAL" << endl;
  }
  for (int i = 1; i <= q; i++) {
    cout << "STRIKE" << endl;
  }
}
