#include <bits/stdc++.h>
using namespace std;
const int N = 1e4 + 5;
char res[N][7];
int cnt;
int main() {
  int h1, a1, c1, h2, a2;
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  while (h2 > 0) {
    if (h1 <= a2 && h2 - a1 > 0)
      h1 += c1, sprintf(res[cnt++], "%s", "HEAL");
    else
      h2 -= a1, sprintf(res[cnt++], "%s", "STRIKE");
    h1 -= a2;
  }
  cout << cnt << endl;
  for (int i = 0; i < cnt; ++i) {
    puts(res[i]);
  }
  return 0;
}
