#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c, h2, a2;
  cin >> h1 >> a1 >> c >> h2 >> a2;
  vector<string> str;
  while (h2 > 0) {
    if (h1 > a2 || a1 >= h2) {
      str.push_back("STRIKE");
      h2 = h2 - a1;
    } else {
      str.push_back("HEAL");
      h1 += c;
    }
    h1 -= a2;
  }
  cout << str.size() << "\n";
  for (auto i : str) {
    cout << i << "\n";
  }
  return 0;
}
