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