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