#include <bits/stdc++.h>
using namespace std;
const long long int INF = 1000000007;
const int N = 100000 + 7;
vector<string> ans;
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  int h1, a1, c1, h2, a2;
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  while (true) {
    if (a1 >= h2) {
      ans.push_back("STRIKE\n");
      break;
    } else if (a2 >= h1) {
      h1 += c1;
      ans.push_back("HEAL\n");
    } else {
      ans.push_back("STRIKE\n");
      h2 -= a1;
    }
    h1 -= a2;
  }
  cout << ((int)(ans).size()) << endl;
  for (int i = 0; i < ((int)(ans).size()); i++) cout << ans[i];
  return 0;
}
