#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, c1, a1, a2, h2, y, z = 0;
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  int x;
  vector<string> p;
  y = ceil((h2 * (1.0)) / a1);
  if ((y - 1) * a2 - h1 >= 0) z = 1 + ((y - 1) * a2 - h1) / ((1.0) * (c1 - a2));
  x = y + z;
  for (int i = 0; i < z; i++) p.push_back("HEAL");
  for (int i = z; i < x; i++) p.push_back("STRIKE");
  cout << x << endl;
  for (int i = 0; i < x; i++) cout << p[i] << endl;
  return 0;
}
