#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c1, h2, a2;
  cin >> h1 >> a1 >> c1;
  cin >> h2 >> a2;
  int cnt = 0;
  string s[100005];
  while (h2 > 0) {
    if (a1 >= h2) {
      s[cnt++] = "STRIKE";
      break;
    }
    if (a2 - h1 >= 0) {
      h1 += c1;
      h1 -= a2;
      s[cnt++] = "HEAL";
    } else {
      h1 -= a2;
      h2 -= a1;
      s[cnt++] = "STRIKE";
    }
  }
  cout << cnt << endl;
  for (int i = 0; i < cnt - 1; i++) {
    cout << s[i] << endl;
  }
  cout << s[cnt - 1];
  return 0;
}
