#include using namespace std; #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); typedef long long ll; // Welcome to my source code! template inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } int main() { int a[3], b[3], cnt = 0; for (int i = 0; i < 3; i++) { cin >> a[i] >> b[i]; if (a[i] % 2 == 0) cnt++; } if (cnt == 1 || cnt == 3) cout << ":-)" << endl; else cout << ":-(" << endl; }