#include <bits/stdc++.h>
bool print[10000000] = {0};
int main() {
  int h1;
  int a1;
  int c1;
  int h2;
  int a2;
  scanf("%d", &h1);
  scanf("%d", &a1);
  scanf("%d", &c1);
  scanf("%d", &h2);
  scanf("%d", &a2);
  memset(print, 0, sizeof(print));
  int IfStrike;
  int i = 0;
  int times = 0;
  while (h2 > 0) {
    IfStrike = 1;
    if (h2 - a1 <= 0) {
      h2 -= a1;
      times++;
      print[i] = false;
      i++;
      break;
    }
    if (h1 - a2 <= 0) {
      print[i] = true;
      i++;
      times++;
      h1 += c1;
      h1 -= a2;
    } else {
      print[i] = false;
      i++;
      times++;
      h2 -= a1;
      h1 -= a2;
    }
  }
  printf("%d\n", times);
  for (int j = 0; j < times; ++j) {
    if (print[j]) {
      printf("HEAL\n");
    } else if (!print[j]) {
      printf("STRIKE\n");
    }
  }
  return 0;
}
