#include <bits/stdc++.h>
using namespace std;
int main() {
  int c, k, coun = 0, m = 0, n = 0, x = 0, u = 0;
  cin >> c >> k;
  for (int i = 1; i <= 6; i++) {
    m = c - i;
    if (m < 0) m = m * -1;
    n = k - i;
    if (n < 0) n = n * -1;
    if (n > m)
      coun++;
    else if (m > n)
      x++;
    else if (m == n)
      u++;
  }
  cout << coun << " " << u << " " << x << endl;
  return 0;
}
