#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, h2, a1, a2, c1;
  scanf("%d%d%d%d%d", &h1, &a1, &c1, &h2, &a2);
  string arr[100000];
  int i = 0;
  while (h2 > 0) {
    if (a1 >= h2 || h1 > a2) {
      h1 -= a2;
      h2 -= a1;
      arr[i++] = "STRIKE";
    } else {
      h1 = h1 + c1 - a2;
      arr[i++] = "HEAL";
    }
  }
  cout << i << endl;
  for (int j = 0; j <= i; j++) cout << arr[j] << endl;
  return 0;
}
