#include <bits/stdc++.h>
using namespace std;
template <class T>
T greater(T a, T b) {
  return (a > b) ? a : b;
}
template <class T>
T smaller(T a, T b) {
  return (a < b) ? a : b;
}
template <class T>
T gcd(T a, T b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
template <class T>
T lcm(T a, T b) {
  return (a * b) / gcd(a, b);
}
template <class T>
T toString(T n) {
  stringstream x;
  x << n;
  return x.str();
}
void solve() {
  int h1, a1, c;
  cin >> h1 >> a1 >> c;
  int h2, a2;
  cin >> h2 >> a2;
  int n = h2 / a1;
  if (h2 % a1 != 0) n++;
  int s = a2 * (n - 1);
  int H = 0;
  while (H * c + h1 <= s) {
    s += a2;
    H++;
  }
  cout << (H + n) << '\n';
  while (H--) cout << "HEAL" << '\n';
  while (n--) cout << "STRIKE" << '\n';
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  solve();
}
