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