#include <bits/stdc++.h>
using namespace std;
void solve(int test) {
  int x[3], y[3];
  for (int(i) = 0; (i) < 3; (i)++) cin >> x[i];
  for (int(j) = 0; (j) < 2; (j)++) cin >> y[j];
  int s = ceil(y[0] * 1.0 / x[1]);
  int h =
      max(0, (int)(floor((y[1] * (s - 1) - x[0]) * 1.0 / (x[2] - y[1]))) + 1);
  cout << h + s << endl;
  for (int(i) = 0; (i) < h; (i)++) cout << "HEAL\n";
  for (int(i) = 0; (i) < s; (i)++) cout << "STRIKE\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int test = 1;
  for (int(i) = 0; (i) < test; (i)++) {
    solve(i + 1);
  }
  return 0;
}
