#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, u, v, a, b, A, B, C;
  A = B = C = 0;
  cin >> a >> b;
  for (i = 1; i <= 6; i++) {
    u = abs(i - a);
    v = abs(i - b);
    if (u < v)
      A++;
    else if (u == v)
      B++;
    else
      C++;
  }
  cout << A << " " << B << " " << C;
  return 0;
}
