#include <bits/stdc++.h>
using namespace std;
int h1, h2, a1, a2, c;
int na, nc;
int f(int a, int b) { return a / b + 1; }
int main() {
  cin >> h1 >> a1 >> c >> h2 >> a2;
  na = h2 / a1 + (h2 % a1 != 0 ? 1 : 0);
  if ((na - 1) * a2 >= h1) nc = ((na - 1) * a2 - h1) / (c - a2) + 1;
  cout << na + nc << endl;
  for (int i = 0; i < nc; ++i) cout << "HEAL" << endl;
  for (int i = 0; i < na; ++i) cout << "STRIKE" << endl;
  getchar();
  getchar();
  return 0;
}
