#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int h1, a1, c1;
  int h2, a2;
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  int z = 0;
  vector<int> v;
  while (h2 > 0) {
    if (h2 <= a1) {
      v.push_back(2);
      h2 -= a1;
    } else if (h1 - a2 <= 0) {
      v.push_back(1);
      h1 += c1;
    } else {
      h2 -= a1;
      v.push_back(2);
    }
    h1 -= a2;
    z++;
  }
  cout << z << "\n";
  for (int i = 0; i < z; i++)
    if (v[i] == 1)
      cout << "HEAL\n";
    else
      cout << "STRIKE\n";
  return 0;
}
