#include <bits/stdc++.h>
using namespace std;
int n, a1, c1, m, a2;
int ans[100010], cnt;
int main() {
  scanf("%d%d%d", &n, &a1, &c1);
  scanf("%d%d", &m, &a2);
  while (m > 0) {
    cnt++;
    if (a1 >= m) {
      ans[cnt] = 1;
      break;
    }
    if (n <= a2) {
      ans[cnt] = 2;
      n += c1;
      n -= a2;
      continue;
    }
    ans[cnt] = 1;
    m -= a1;
    n -= a2;
  }
  printf("%d\n", cnt);
  for (int i = 1; i <= cnt; i++)
    if (ans[i] == 1)
      puts("STRIKE");
    else
      puts("HEAL");
  return 0;
}
