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