#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int h1, a1, c1, h2, a2;
  int ans = 0;
  vector<string> v;
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  while (h2 > 0) {
    ans++;
    if (h1 <= a2 && h2 > a1) {
      v.push_back("HEAL");
      h1 = h1 + c1 - a2;
    } else {
      v.push_back("STRIKE");
      h2 -= a1;
      h1 -= a2;
    }
  }
  cout << ans << endl;
  for (int i = 0; i < ans; i++) cout << v[i] << endl;
}
