#include <bits/stdc++.h>
using namespace std;
const long long N = 1;
const long long big = 1e18;
const long long block = 800;
const long long mod = 1e6;
long long n, a, c;
long long b, d;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n >> a >> c >> b >> d;
  c -= d;
  long long ans = big;
  pair<long long, long long> xx = {0, 0};
  long long heal = 0;
  for (int atack = 1; atack < 100000; atack++) {
    if (a * atack < b) continue;
    long long z = (atack - 1) * d;
    pair<long long, long long> y = {atack, 0};
    while (n - z <= 0) heal++, n += c;
    y.second = heal;
    if (y.first + y.second < ans) ans = y.first + y.second, xx = y;
  }
  cout << ans << '\n';
  while (xx.second--) cout << "HEAL\n";
  while (xx.first--) cout << "STRIKE\n";
}
