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