#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, i;
  cin >> a >> b;
  int count1 = 0, count2 = 0, count3 = 0;
  for (i = 1; i <= 6; i++) {
    if (abs(i - a) < abs(i - b))
      count1++;
    else if (abs(i - a) == abs(i - b))
      count2++;
    else
      count3++;
  }
  cout << count1 << ' ' << count2 << ' ' << count3;
}
