#include <bits/stdc++.h>
int a, b, c, d, e;
std::queue<int> q;
int main() {
  std::cin >> a >> b >> c;
  std::cin >> d >> e;
  do {
    if (a <= e && d > b) {
      a += c;
      q.push(1);
    } else {
      d -= b;
      q.push(2);
    }
    a -= e;
  } while (d > 0);
  std::cout << q.size() << "\n";
  while (q.size() > 0) {
    if (q.front() == 1)
      std::cout << "HEAL"
                << "\n";
    else
      std::cout << "STRIKE"
                << "\n";
    q.pop();
  }
  return 0;
}
