#include <bits/stdc++.h>
using namespace std;
long long ans;
int main() {
  int h1, a1, c1, h2, a2;
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  int vova = ceil((double)h2 / (double)a1);
  int mon = (vova - 1) * a2;
  if (mon < h1) {
    cout << vova << endl;
    for (int i = 0; i < vova; i++) cout << "STRIKE" << endl;
  } else {
    int heal = ceil((double)abs(mon - h1 + 1) / (double)abs(c1 - a2));
    if (heal == 0) heal++;
    cout << vova + heal << endl;
    for (int i = 0; i < heal; i++) cout << "HEAL" << endl;
    for (int i = 0; i < vova; i++) cout << "STRIKE" << endl;
  }
}
