#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c, h2, a2;
  scanf("%d %d %d", &h1, &a1, &c);
  scanf("%d %d", &h2, &a2);
  vector<string> v;
  while (h2 > 0) {
    if (h2 <= a1) {
      v.push_back("STRIKE\n");
      break;
    } else if (h1 - a2 <= 0) {
      h1 += c;
      v.push_back("HEAL\n");
    } else {
      h2 -= a1;
      v.push_back("STRIKE\n");
    }
    h1 -= a2;
  }
  printf("%d\n", (int)v.size());
  for (string s : v) cout << s;
  return 0;
}
