#include <bits/stdc++.h>
#pragma GCC optimize(2)
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("-fgcse")
#pragma GCC optimize("-fgcse-lm")
#pragma GCC optimize("-fipa-sra")
#pragma GCC optimize("-ftree-pre")
#pragma GCC optimize("-ftree-vrp")
#pragma GCC optimize("-fpeephole2")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-fsched-spec")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("-falign-jumps")
#pragma GCC optimize("-falign-loops")
#pragma GCC optimize("-falign-labels")
#pragma GCC optimize("-fdevirtualize")
#pragma GCC optimize("-fcaller-saves")
#pragma GCC optimize("-fcrossjumping")
#pragma GCC optimize("-fthread-jumps")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-fwhole-program")
#pragma GCC optimize("-freorder-blocks")
#pragma GCC optimize("-fschedule-insns")
#pragma GCC optimize("inline-functions")
#pragma GCC optimize("-ftree-tail-merge")
#pragma GCC optimize("-fschedule-insns2")
#pragma GCC optimize("-fstrict-aliasing")
#pragma GCC optimize("-fstrict-overflow")
#pragma GCC optimize("-falign-functions")
#pragma GCC optimize("-fcse-skip-blocks")
#pragma GCC optimize("-fcse-follow-jumps")
#pragma GCC optimize("-fsched-interblock")
#pragma GCC optimize("-fpartial-inlining")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("-freorder-functions")
#pragma GCC optimize("-findirect-inlining")
#pragma GCC optimize("-fhoist-adjacent-loads")
#pragma GCC optimize("-frerun-cse-after-loop")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC optimize("-ftree-switch-conversion")
#pragma GCC optimize("-foptimize-sibling-calls")
#pragma GCC optimize("-fexpensive-optimizations")
#pragma GCC optimize("-funsafe-loop-optimizations")
#pragma GCC optimize("inline-functions-called-once")
#pragma GCC optimize("-fdelete-null-pointer-checks")
using namespace std;
template <class T>
bool read(T &x) {
  char c;
  bool op = 0;
  while (c = getchar(), c < '0' || c > '9')
    if (c == '-') {
      op = 1;
    } else if (c == EOF) {
      return 0;
    }
  x = c - '0';
  while (c = getchar(), c >= '0' && c <= '9') x = x * 10 + c - '0';
  if (op) x = -x;
  return 1;
}
template <class T>
void write(T x) {
  if (x >= 10) {
    write(x / 10);
  }
  putchar('0' + x % 10);
}
long long h1, a1, c1;
long long h2, a2;
long long ans;
int main() {
  read(h1), read(a1), read(c1);
  read(h2), read(a2);
  long long cnt1 = 0;
  cnt1 = h2 % a1 == 0 ? h2 / a1 : h2 / a1 + 1;
  long long tmpnum = (cnt1 - 1) * a2;
  if (h1 > tmpnum) {
    ans = cnt1;
    write(cnt1);
    cout << endl;
    for (int i = 0; i < cnt1; i++) {
      printf("STRIKE\n");
    }
  } else {
    if (h1 == tmpnum) {
      write(cnt1 + 1);
      cout << endl;
      printf("HEAL\n");
      for (int i = 0; i < cnt1; i++) {
        printf("STRIKE\n");
      }
    } else {
      long long cnt2 = 0;
      long long tmph = h1 + c1 - a2;
      cnt2++;
      long long dis = tmpnum - tmph;
      cnt2 += (dis / (c1 - a2) + 1);
      write(cnt2 + cnt1);
      cout << endl;
      for (int i = 0; i < cnt2; i++) {
        printf("HEAL\n");
      }
      for (int i = 0; i < cnt1; i++) {
        printf("STRIKE\n");
      }
    }
  }
  return 0;
}
