#include <bits/stdc++.h>
using namespace std;
const unsigned long long mod = 1e9 + 7;
template <class S, class T>
ostream& operator<<(ostream& os, const pair<S, T> v) {
  os << "(" << v.first << ", " << v.second << ")";
  return os;
}
template <class T>
ostream& operator<<(ostream& os, const vector<T> v) {
  for (int i = 0; i < (int)v.size(); i++) {
    if (i > 0) {
      os << " ";
    }
    os << v[i];
  }
  return os;
}
template <class T>
ostream& operator<<(ostream& os, const vector<vector<T>> v) {
  for (int i = 0; i < (int)v.size(); i++) {
    if (i > 0) {
      os << endl;
    }
    os << v[i];
  }
  return os;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long h1, a1, c1, h2, a2;
  cin >> h1 >> a1 >> c1 >> h2 >> a2;
  vector<bool> res;
  while (1) {
    if (h2 <= a1) {
      res.push_back(true);
      h2 -= a1;
    } else if (h1 <= a2) {
      res.push_back(false);
      h1 += c1;
    } else {
      res.push_back(true);
      h2 -= a1;
    }
    if (h2 <= 0) break;
    h1 -= a2;
  }
  long long K = res.size();
  cout << K << endl;
  for (int i = 0; i < (int)K; ++i) {
    cout << (res[i] ? "STRIKE" : "HEAL") << endl;
  }
  return 0;
}
