#include <bits/stdc++.h>
using namespace std;
int main() {
  int h, a, c, h_, a_, moves, moves_, at;
  cin >> h;
  cin >> a;
  cin >> c;
  cin >> h_;
  cin >> a_;
  moves = h_ / a;
  if (h_ % a != 0) moves += 1;
  moves_ = h / a_;
  if (h % a_ != 0) moves_ += 1;
  if (moves_ < moves) {
    at = (moves - 1) * a_ - h + 1;
    moves += at / (c - a_);
    if (at % (c - a_) != 0) moves += 1;
  }
  cout << moves << endl;
  while (!(h <= 0 || h_ <= 0)) {
    if (h > a_ || h_ <= a) {
      cout << "STRIKE" << endl;
      h -= a_;
      h_ -= a;
    } else {
      cout << "HEAL" << endl;
      h += c;
      h -= a_;
    }
  }
}
