#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  int x, y;
  int cnt;
  cin >> a >> b >> c >> x >> y;
  vector<string> ans;
  while (1) {
    if (x - b <= 0) {
      ans.push_back("STRIKE");
      break;
    } else if (a - y <= 0) {
      ans.push_back("HEAL");
      a += c;
      a -= y;
    } else {
      a -= y;
      x -= b;
      ans.push_back("STRIKE");
    }
  }
  cout << ans.size() << endl;
  for (int i = 0; i < ans.size(); i++) cout << ans[i] << endl;
  return 0;
}
