#include <bits/stdc++.h>
using namespace std;
int main() {
  int h1, c1, a1, h2, a2, i = 0;
  int h11, c11, a11, h22, a22;
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  h11 = h1;
  h22 = h2;
  c11 = c1;
  a11 = a1;
  a22 = a2;
  while (h2 > 0) {
    if (h2 <= a1) {
      i++;
      break;
    } else if (h1 - a2 > 0) {
      h1 = h1 - a2;
      h2 = h2 - a1;
    } else {
      h1 = h1 + c1 - a2;
      h2 = h2;
    }
    i++;
  }
  cout << i << endl;
  while (h22 > 0) {
    if (h22 <= a11) {
      cout << "STRIKE" << endl;
      break;
    } else if (h11 - a22 > 0) {
      h11 = h11 - a22;
      h22 = h22 - a11;
      cout << "STRIKE" << endl;
    } else {
      h11 = h11 + c11 - a22;
      h22 = h22;
      cout << "HEAL" << endl;
    }
  }
  return 0;
}
