#include <bits/stdc++.h>
using namespace std;
int main() {
  int i;
  int a, b;
  int draw = 0, awin = 0, bwin = 0;
  cin >> a >> b;
  for (i = 1; i < 7; i++) {
    if (abs(i - a) == abs(i - b))
      draw++;
    else if (abs(i - a) > abs(i - b))
      bwin++;
    else
      awin++;
  }
  cout << awin << " " << draw << " " << bwin << endl;
  return 0;
}
