#include <bits/stdc++.h>
using namespace std;
long long int aA[300001], aB[300001], aC[1001][1001];
vector<long long int> vA, vB;
long long int T, n, i, j, k, a, b, c, m, u, v, x, y, l, r, s, e, ans;
int main() {
  int h1, a1, c1, h2, a2;
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> h1 >> a1 >> c1;
  cin >> h2 >> a2;
  float ll = h2 / (1.0 * a1);
  if (ll == (int)ll)
    b = ll;
  else
    b = (int)ll + 1;
  ll = (a2 * (b - 1) - h1) / (1.0 * c1 - a2);
  if (ll < 0)
    a = 0;
  else if (ll == (int)ll)
    a = ll + 1;
  else
    a = (int)ll + 1;
  cout << a + b << endl;
  for (i = 0; i < a; i++) cout << "HEAL\n";
  for (i = 0; i < b; i++) cout << "STRIKE\n";
}
