#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c1, h2, a2;
  scanf("%d%d%d%d%d", &h1, &a1, &c1, &h2, &a2);
  int n = h2 / a1 + (h2 % a1 == 0 ? 0 : 1);
  int p = c1 - a2;
  int damage = (n - 1) * a2;
  if (damage < h1) {
    printf("%d\n", n);
    for (int i = 1; i <= n; i++) printf("STRIKE\n");
    return 0;
  } else {
    int k;
    if (damage == h1)
      k = 1;
    else
      k = (damage - h1) / p + 1;
    printf("%d\n", k + n);
    for (int i = 1; i <= k; i++) printf("HEAL\n");
    for (int i = 1; i <= n; i++) printf("STRIKE\n");
    return 0;
  }
}
