#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c1;
  cin >> h1 >> a1 >> c1;
  int h, a;
  cin >> h >> a;
  vector<string> s;
  while (h > 0) {
    if (h - a1 <= 0) {
      s.push_back("STRIKE");
      h -= a1;
    } else if (h1 - a <= 0) {
      s.push_back("HEAL");
      h1 += c1;
      h1 -= a;
    } else {
      s.push_back("STRIKE");
      h -= a1;
      h1 -= a;
    }
  }
  cout << s.size() << '\n';
  for (int i = 0; i < s.size(); i++) cout << s[i] << '\n';
}
