#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long h1, a1, c1;
  long long h2, a2;
  cin >> h1 >> a1 >> c1;
  cin >> h2 >> a2;
  vector<string> res;
  const string STRIKE = "STRIKE";
  const string HEAL = "HEAL";
  while (h2 > 0) {
    if (a1 >= h2) {
      res.push_back(STRIKE);
      break;
    }
    if (a2 >= h1) {
      res.push_back(HEAL);
      h1 += c1;
    } else {
      res.push_back(STRIKE);
      h2 -= a1;
    }
    h1 -= a2;
  }
  cout << res.size() << '\n';
  for (auto i : res) cout << i << '\n';
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  solve();
  return 0;
}
