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