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