#include <iostream>
using namespace std;

int main() {
	int total = 0;

for (int i = 1; i <= 3; i++) {
    int s = 0;
    for (int j = 1; j <= 4; j++) {
        if ((i + j) % 2 == 0) continue;
        s += j;
        if (s > 5) break;
    }
    total += s;
    cout << s << " ";
}

cout << total;

}