#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c1, h2, a2;
  scanf("%d %d %d", &h1, &a1, &c1);
  scanf("%d %d", &h2, &a2);
  int cnt = 0;
  char result[1000000];
  while (h2 > 0) {
    if (h2 <= a1) {
      result[cnt] = 'S';
      h2 -= a1;
    } else {
      if (h1 > a2) {
        result[cnt] = 'S';
        h2 -= a1;
      } else {
        result[cnt] = 'H';
        h1 += c1;
      }
      h1 -= a2;
    }
    cnt++;
  }
  printf("%d\n", cnt);
  for (int i = 0; i < cnt; i++) {
    if (result[i] == 'S') {
      printf("STRIKE\n");
    } else {
      printf("HEAL\n");
    }
  }
  return 0;
}
