#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
bool a[N];
int main() {
  int h1, a1, c1, a2, h2, k = 0;
  scanf("%d%d%d%d%d", &h1, &a1, &c1, &h2, &a2);
  while (h2 > 0) {
    if (h1 > a2) {
      a[++k] = 1;
      h2 -= a1;
      h1 -= a2;
    } else if (a1 >= h2) {
      a[++k] = 1;
      h2 -= a1;
      h1 -= a2;
    } else {
      a[++k] = 0;
      h1 -= a2 - c1;
    }
  }
  printf("%d\n", k);
  for (int i = 1; i <= k; i++)
    if (a[i])
      printf("STRIKE\n");
    else
      printf("HEAL\n");
  return 0;
}
