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