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