#include <bits/stdc++.h>
typedef unsigned long long ull;
typedef long long ll;
#define repu(i,a,b) for(ull i = a; i<b; i++)
#define rep(i,a,b) for(int i = a; i<b; i++)
using namespace std;

int n,res;
double per;
int main() {
	per = 1.08;
	
	cin>>n;
	
	res = floor(n*per);
	
	if(res<206){
		cout<<"Yay!";
	} else if(res>206){
		cout<<":(";
	} else {
		cout<<"so-so";
	}
	return 0;
}
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

string str;

int cal(int x, int size)
{
	string tp;
	for (int k = 0; k < size; ++k) {
		if (x >> k & 1) tp += str[k];
	}
	ll val = stol(tp);
	return (0 == val % 3) ? tp.size() : -1;
}

int solve(void)
{
	int res = 0;
	int size = str.size();
	for (int k = 1; k < (1 << size); ++k) {
		res = max(res, cal(k, size));
	}
	return (0 == res) ? -1 : size - res;
}

int main(int argc, char** argv)
{
	while (cin >> str) {
		cout << solve() << endl;
	}
	return 0;
}
