#include <bits/stdc++.h>
using namespace std;
long long freq[100001];
int dp[101];
int main() {
  int h, a, p;
  cin >> h >> a >> p;
  int mh, ma;
  cin >> mh >> ma;
  vector<int> s;
  while (h - ma > 0 || mh <= a) {
    h -= ma;
    mh -= a;
    s.push_back(1);
    if (mh <= 0) break;
  }
  while (mh > 0) {
    s.push_back(0);
    h += p - ma;
    while (h - ma > 0 || mh <= a) {
      h -= ma;
      mh -= a;
      s.push_back(1);
      if (mh <= 0) break;
    }
  }
  cout << s.size() << endl;
  for (int i = 0; i < s.size(); i++) {
    if (s[i])
      cout << "STRIKE" << endl;
    else
      cout << "HEAL" << endl;
  }
  cout << endl;
  return 0;
}
