#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c1, h2, a2;
  scanf("%d%d%d%d%d", &h1, &a1, &c1, &h2, &a2);
  vector<string> res;
  while (h2 > 0) {
    if (h1 - a2 > 0 || h2 - a1 <= 0) {
      res.push_back("STRIKE");
      h1 -= a2;
      h2 -= a1;
    } else {
      res.push_back("HEAL");
      h1 += c1;
      h1 -= a2;
    }
  }
  cout << res.size() << endl;
  for (int i = 0; i < res.size(); i++) {
    cout << res[i] << endl;
  }
}
