#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6;
int a, b, c, d, e;
const string kq[2] = {"STRIKE", "HEAL"};
int s[maxn];
void nhap() {
  cin >> a >> b >> c;
  cin >> d >> e;
}
void xuli() {
  int res = 0;
  while (d > 0) {
    res++;
    if (d - b <= 0) {
      s[res] = 0;
      break;
    }
    if (a - e <= 0) {
      a += c;
      s[res] = 1;
    } else {
      d -= b;
      s[res] = 0;
    }
    a -= e;
  }
  cout << res << endl;
  for (int i = 1; i <= res; i++) {
    cout << kq[s[i]] << "\n";
  }
}
int main() {
  nhap();
  xuli();
}
