#include <bits/stdc++.h>
using namespace std;
const long long int MOD = 1e9 + 7, INF = 0x3F3F3F3F3F3F3F3F;
const int inf = 0x3F3F3F3F;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int h, a, c, H, A;
  cin >> h >> a >> c >> H >> A;
  vector<string> ans;
  while (h > 0 && H > 0) {
    if (H <= a && h <= A) {
      ans.push_back("STRIKE");
      break;
    }
    if (h <= A) {
      h += c;
      ans.push_back("HEAL");
    } else {
      H -= a;
      ans.push_back("STRIKE");
    }
    h -= A;
  }
  cout << ans.size() << endl;
  for (string x : ans) {
    cout << x << endl;
  }
  return 0;
}
