#include<bits/stdc++.h>
#define ull unsigned long long
#define ll long long
#define all(x) x.begin(), x.end()
using namespace std;
const int maxn = 1e6 + 5;
int main() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int a, b, c, d, e, f;
cin >> a >> b >> c >> d >> e >> f;
int pointA = 0, pointB = 0, pointC = 0;
if (a > b) {
pointA += 3;
}
else if (a < b) {
pointB += 3;
}
else {
pointA++;
pointB++;
}
if (c > d) {
pointA += 3;
}
else if (c < d) {
pointC += 3;
}
else {
pointA++;
pointC++;
}
if (e > f) {
pointB += 3;
}
else if (e < f) {
pointC += 3;
}
else {
pointB++;
pointC++;
}
cout << pointA << " " << pointB << " " << pointC;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KI2RlZmluZSB1bGwgdW5zaWduZWQgbG9uZyBsb25nCiNkZWZpbmUgbGwgbG9uZyBsb25nCiNkZWZpbmUgYWxsKHgpIHguYmVnaW4oKSwgeC5lbmQoKQp1c2luZyBuYW1lc3BhY2Ugc3RkOwpjb25zdCBpbnQgbWF4biA9IDFlNiArIDU7CmludCBtYWluKCkgewogICAgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbygwKTsgY2luLnRpZSgwKTsgY291dC50aWUoMCk7CiAgICBpbnQgYSwgYiwgYywgZCwgZSwgZjsKICAgIGNpbiA+PiBhID4+IGIgPj4gYyA+PiBkID4+IGUgPj4gZjsKCiAgICBpbnQgcG9pbnRBID0gMCwgcG9pbnRCID0gMCwgcG9pbnRDID0gMDsKICAgIAogICAgaWYgKGEgPiBiKSB7CiAgICAgICAgcG9pbnRBICs9IDM7CiAgICB9CiAgICBlbHNlIGlmIChhIDwgYikgewogICAgICAgIHBvaW50QiArPSAzOwogICAgfQogICAgZWxzZSB7CiAgICAgICAgcG9pbnRBKys7CiAgICAgICAgcG9pbnRCKys7CiAgICB9CiAgICBpZiAoYyA+IGQpIHsKICAgICAgICBwb2ludEEgKz0gMzsKICAgIH0KICAgIGVsc2UgaWYgKGMgPCBkKSB7CiAgICAgICAgcG9pbnRDICs9IDM7CiAgICB9CiAgICBlbHNlIHsKICAgICAgICBwb2ludEErKzsKICAgICAgICBwb2ludEMrKzsKICAgIH0KICAgIGlmIChlID4gZikgewogICAgICAgIHBvaW50QiArPSAzOwogICAgfQogICAgZWxzZSBpZiAoZSA8IGYpIHsKICAgICAgICBwb2ludEMgKz0gMzsKICAgIH0KICAgIGVsc2UgewogICAgICAgIHBvaW50QisrOwogICAgICAgIHBvaW50QysrOwogICAgfQogICAgY291dCA8PCBwb2ludEEgPDwgIiAiIDw8IHBvaW50QiA8PCAiICIgPDwgcG9pbnRDOwp9Cgo=