#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c1, h2, a2;
  cin >> h1 >> a1 >> c1;
  cin >> h2 >> a2;
  vector<string> v;
  int phase = 0;
  int flag = 1;
  while (h2 > 0) {
    if (flag) {
      if (h1 > a2) {
        v.push_back("STRIKE");
        h2 -= a1;
      } else if (a1 >= h2) {
        v.push_back("STRIKE");
        h2 -= a1;
      } else {
        v.push_back("HEAL");
        h1 += c1;
      }
      flag = 0;
    } else {
      h1 -= a2;
      flag = 1;
    }
  }
  cout << v.size() << endl;
  for (int i = 0; i < v.size(); i++) cout << v[i] << endl;
  return 0;
}
