#include <bits/stdc++.h>
int main(int argc, char const *argv[]) {
  int h1, a1, c1, h2, a2;
  std::cin >> h1 >> a1 >> c1;
  std::cin >> h2 >> a2;
  std::string s = "STRIKE\n", h = "HEAL\n";
  int n(0);
  std::string ans;
  while (h2 > 0) {
    n++;
    if (h1 <= a2 && h2 > a1) {
      h1 += c1;
      ans += h;
    } else {
      h2 -= a1;
      ans += s;
    }
    h1 -= a2;
  }
  std::cout << n << '\n';
  std::cout << ans;
  return 0;
}
