#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, a1, c1, h2, a2;
  cin >> h1 >> a1 >> c1;
  cin >> h2 >> a2;
  for (int i = 0;; i++) {
    bool works = false;
    int x = h1 + (c1 - a2) * i, y = h2;
    int t = 0;
    while (true) {
      y -= a1;
      t++;
      if (y <= 0) {
        works = true;
        break;
      }
      x -= a2;
      if (x <= 0) {
        works = false;
        break;
      }
    }
    if (works) {
      cout << i + t << endl;
      for (int j = 0; j < i; j++) cout << "HEAL" << endl;
      for (int j = 0; j < t; j++) cout << "STRIKE" << endl;
      return 0;
    }
  }
}
