#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int h1, a1, c1;
  int h2, a2;
  cin >> h1 >> a1 >> c1;
  cin >> h2 >> a2;
  int th1 = h1;
  int th2 = h2;
  int count = 0;
  while (th2 > 0) {
    if (th1 > a2 || th2 - a1 <= 0) {
      count++;
      th2 = th2 - a1;
      th1 = th1 - a2;
    } else {
      count++;
      th1 = th1 + c1;
      th1 = th1 - a2;
    }
  }
  cout << count << "\n";
  while (h2 > 0) {
    if (h1 > a2 || h2 - a1 <= 0) {
      h2 = h2 - a1;
      h1 = h1 - a2;
      cout << "STRIKE\n";
    } else {
      h1 = h1 + c1;
      h1 = h1 - a2;
      cout << "HEAL\n";
    }
  }
  return 0;
}
