#include <bits/stdc++.h>
int main() {
  int h1, a1, c1;
  int h2, a2;
  scanf("%d%d%d", &h1, &a1, &c1);
  scanf("%d%d", &h2, &a2);
  int x = h2 / a1;
  int rem1 = h2 % a1;
  if (rem1 != 0) x++;
  int y = h1 / a2;
  int rem2 = h1 % a2;
  if (rem2 != 0) y++;
  if (x <= y) {
    printf("%d\n", x);
    while (x--) {
      printf("STRIKE\n");
    }
    return 0;
  } else {
    int k = 0, arr[100000] = {0};
    while (1) {
      if (h2 <= 0) {
        break;
      }
      if (h1 - a2 <= 0 && h2 - a1 > 0) {
        arr[k] = 1;
        h1 += c1;
      } else {
        h2 -= a1;
      }
      h1 -= a2;
      k++;
    }
    int i;
    printf("%d\n", k);
    for (i = 0; i < k; i++) {
      if (arr[i] == 0) {
        printf("STRIKE\n");
      } else {
        printf("HEAL\n");
      }
    }
    return 0;
  }
}
