#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int h1, a1, c1, h2, a2;
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  vector<string> x;
  while (1) {
    if (h1 <= a2) {
      if (h2 <= a1) {
        x.push_back("STRIKE");
        break;
      }
      x.push_back("HEAL");
      h1 += c1;
    } else {
      x.push_back("STRIKE");
      h2 -= a1;
    }
    h1 -= a2;
    if (h2 <= 0) break;
  }
  cout << x.size() << endl;
  for (string a : x) cout << a << endl;
}
