#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int a, b;
  cin >> a >> b;
  long long int ans = 0;
  for (int i = 0; i < 6; ++i) {
    if (abs(a - i - 1) < abs(b - i - 1)) ans++;
  }
  cout << ans << " ";
  ans = 0;
  for (int i = 0; i < 6; ++i) {
    if (abs(a - i - 1) == abs(b - i - 1)) ans++;
  }
  cout << ans << " ";
  ans = 0;
  for (int i = 0; i < 6; ++i) {
    if (abs(a - i - 1) > abs(b - i - 1)) ans++;
  }
  cout << ans << "\n";
  return 0;
}
