#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int h1, a1, c1, a2, h2, dh1, da1, dc1, da2, dh2, c = 0;
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  dh1 = h1;
  da1 = a1;
  dc1 = c1;
  dh2 = h2;
  da2 = a2;
  while (dh2 > 0) {
    c++;
    if (dh1 <= da2 && dh2 > da1) {
      dh1 += dc1 - da2;
    } else {
      dh2 -= da1;
      if (dh2 <= 0) {
        break;
      } else {
        dh1 -= da2;
      }
    }
  }
  cout << c << endl;
  while (h2 > 0) {
    if (h1 <= a2 && h2 > a1) {
      cout << "HEAL" << endl;
      h1 += c1 - a2;
    } else {
      h2 -= a1;
      cout << "STRIKE" << endl;
      if (h2 <= 0) {
        break;
      } else {
        h1 -= a2;
      }
    }
  }
}
