#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c1;
  int h2, a2;
  while (cin >> h1 >> a1 >> c1) {
    cin >> h2 >> a2;
    int cnt = 0;
    int flag = h1;
    string sn;
    queue<string> ans;
    while (h2 > 0) {
      cnt++;
      if (h2 <= a1) {
        h2 -= a1;
        sn = "STRIKE";
        ans.push(sn);
        break;
      }
      if (a2 >= h1) {
        h1 += c1;
        sn = "HEAL";
        ans.push(sn);
      } else {
        h2 -= a1;
        sn = "STRIKE";
        ans.push(sn);
      }
      h1 -= a2;
    }
    cout << cnt << endl;
    while (!ans.empty()) {
      cout << ans.front() << endl;
      ans.pop();
    }
  }
}
