#include <bits/stdc++.h>
using namespace std;
long long h1, h2, a1, a2, c1, i, c, k, ans, ans2;
vector<int> v;
int main() {
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  for (int i = 0; i < 100000; i++) int l = 10;
  while (true) {
    ans++;
    if (a1 >= h2) {
      v.push_back(0);
      break;
    }
    if (h1 > a2) {
      h2 -= a1;
      v.push_back(0);
    } else {
      h1 += c1;
      v.push_back(1);
    }
    if (h2 <= 0) {
      break;
    }
    h1 -= a2;
  }
  cout << ans << endl;
  for (int i = 0; i < v.size(); i++) {
    if (v[i] == 0) {
      cout << "STRIKE" << endl;
    } else
      cout << "HEAL" << endl;
  }
  return 0;
}
