#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c, h2, a2, n = 0;
  cin >> h1 >> a1 >> c >> h2 >> a2;
  int h1temp = h1, a1temp = a1, ctemp = c, h2temp = h2, a2temp = a2;
  while (h2temp > 0) {
    if (h1temp <= a2temp && h2temp > a1temp) {
      h1temp += ctemp;
    } else {
      h2temp -= a1temp;
    }
    n++;
    if (h2temp > 0) h1temp -= a2temp;
  }
  cout << n << endl;
  while (h2 > 0) {
    if (h1 <= a2 && h2 > a1) {
      cout << "HEAL" << endl;
      h1 += c;
    } else {
      cout << "STRIKE" << endl;
      h2 -= a1;
    }
    if (h2 > 0) h1 -= a2;
  }
  return 0;
}
