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