#include <bits/stdc++.h>

using namespace std;

using ll = long long;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a,b,c,d,e,f;
    cin >> a >> b >> c >> d >> e >> f;
    cout << ((a % 2 + c % 2 + e % 2) % 2 == 0 ? ":-)" : ":-(") << endl;
    return 0;
}