#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, h1, c1, a2, h2;
  cin >> h1 >> a1 >> c1;
  cin >> h2 >> a2;
  vector<int> ans;
  int counter = 0;
  while (true) {
    if (h2 <= a1) {
      ans.push_back(0);
      counter++;
      h2 -= a1;
    } else if (h1 > a2) {
      ans.push_back(0);
      counter++;
      h2 -= a1;
      h1 -= a2;
    } else {
      ans.push_back(1);
      counter++;
      h1 += c1;
      h1 -= a2;
    }
    if (h2 <= 0) {
      cout << counter << endl;
      for (auto elem : ans) {
        if (elem == 0) {
          cout << "STRIKE" << endl;
        } else {
          cout << "HEAL" << endl;
        }
      }
      return 0;
    }
  }
  return 0;
}
