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