#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int MAX = 1e3 + 2;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int h1, a1, c1;
  cin >> h1 >> a1 >> c1;
  int h2, a2;
  cin >> h2 >> a2;
  vector<string> ans;
  while (h2 > 0) {
    if (h2 <= a1) {
      ans.push_back("STRIKE");
      break;
    }
    if (h1 <= a2) {
      ans.push_back("HEAL");
      h1 += c1;
    } else {
      ans.push_back("STRIKE");
      h2 -= a1;
    }
    h1 -= a2;
  }
  cout << ans.size() << '\n';
  for (int i = 0; i < ans.size(); i++) cout << ans[i] << '\n';
}
