#include <bits/stdc++.h>
using namespace std;
long long v[100000];
int main() {
  long long h1, h, a1, a2, c1, coun = 0, i = 0;
  scanf("%lld", &h1);
  scanf("%lld", &a1);
  scanf("%lld", &c1);
  scanf("%lld", &h);
  scanf("%lld", &a2);
  while (h > 0) {
    i++;
    coun++;
    if (h < a1 || h == a1) {
      h = h - a1;
      v[i] = 0;
      break;
    } else if (h1 <= a2) {
      h1 = h1 + c1 - a2;
      v[i] = 1;
      continue;
    }
    h = h - a1;
    v[i] = 0;
    h1 = h1 - a2;
  }
  printf("%lld\n", coun);
  for (long long i = 1; i <= coun; i++) {
    if (v[i] == 1) {
      printf("HEAL\n");
    } else
      printf("STRIKE\n");
  }
}
