#include <bits/stdc++.h>
using namespace std;
int main() {
  int msaude, matack, mheal;
  int esaude, eatack;
  scanf("%d %d %d", &msaude, &matack, &mheal);
  scanf("%d %d", &esaude, &eatack);
  string ans = "";
  int quant = 0;
  while (esaude > 0) {
    if (matack >= esaude) {
      esaude -= matack;
      ans += "STRIKE\n";
    } else {
      if (eatack >= msaude) {
        msaude += mheal;
        ans += "HEAL\n";
      } else {
        esaude -= matack;
        ans += "STRIKE\n";
      }
    }
    quant++;
    msaude -= eatack;
  }
  cout << quant << endl << ans;
  return 0;
}
