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