#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    scanf("%d", &n);
    puts(n == 191 ? "so-so" : (n < 191 ? "Yay!" : ":("));
    return 0;
}
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using pii = pair<int, int>;

int main() {
	ll n;
	cin >> n;
	vector<ll> ans;
	for (ll i = 1; i * i <= n; i++) {
		if (n % i == 0) {
			if (i * i == n) ans.push_back(i);
			else {
				ans.push_back(i);
				ans.push_back(n / i);
			}
		}
	}
	sort(ans.begin(), ans.end());
	rep(i, (int)ans.size()) {
		cout << ans[i] << endl;
	}
	return 0;
}