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

int digit(long long n) {
    int d = 0;
    while (n > 0) {
        d++;
        n /= 10;
    }
    return d;
}

int main() {
    long long n, res;
    cin >> n;
    int d = digit(n);
    if (d < 4) {
        cout << 0 << endl;
        return 0;
    }
    if (d >= 4 && d < 7) {
        cout << (n - 1000 + 1) << endl;
        return 0;
    }
    if (d >= 7 && d < 10) {
        res = 999000 + (n - 1000000 + 1)*2;
        cout << res << endl;
        return 0;
    }
    if (d >= 10 && d < 13) {
        res = 999000 + 999000000*2 + (n - 1000000000+1)*3;
        cout << res << endl;
        return 0;
    }
    if (d >= 13 && d < 16) {
        res = 999000 + 999000000*2 + 999000000000*3 + (n - 1000000000000+1)*4;
        cout << res << endl; 
        return 0;
    }
    if (d >= 16) {
        res = 999000 + 999000000*2 + 999000000000*3 + 999000000000000*4 + 5;
        cout << res << endl;
    }
}
#include <bits/stdc++.h>

using namespace std;
#define ll long long
#define fio ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define tc ll tc; cin >> tc; while(tc--)
#define mod1 = 1000000007;
#define pb push_back
#define pob pop_back

//debug starts
#ifndef ONLINE_JUDGE
#define dbg(x) cerr<<#x<<gp;_print(x);cerr<<endl;
#else
#define dbg(x)
#endif
void _print(int a){cerr<<a;}
void _print(ll a){cerr<<a;}
void _print(char a){cerr<<a;}
void _print(string a){cerr<<a;}
void _print(bool a){cerr<<a;}
template <class T, class V> void _print(pair <T, V> p);
template <class T> void _print(vector <T> v);
template <class T> void _print(set <T> v);
template <class T, class V> void _print(map <T, V> v);
template <class T> void _print(multiset <T> v);
template <class T, class V> void _print(pair <T, V> p) {cerr << "{"; _print(p.ff); cerr << ","; _print(p.ss); cerr << "}";}
template <class T> void _print(vector <T> v) {cerr << "[ "; for (T i : v) {_print(i); cerr << " ";} cerr << "]";}
template <class T> void _print(set <T> v) {cerr << "[ "; for (T i : v) {_print(i); cerr << " ";} cerr << "]";}
template <class T> void _print(multiset <T> v) {cerr << "[ "; for (T i : v) {_print(i); cerr << " ";} cerr << "]";}
template <class T, class V> void _print(map <T, V> v) {cerr << "[ "; for (auto i : v) {_print(i); cerr << " ";} cerr << "]";}
//debug ends

int main()
{

    //remove this while stressing or in interactive
    #ifndef ONLINE_JUDGE
    freopen("input.in", "r", stdin);
    freopen("output.out", "w", stdout);
    #endif
    //till here

    #ifndef ONLINE_JUDGE
    freopen("error.txt","w",stderr);
    #endif

    fio;
    ll n;cin>>n;
    ll tp=floor(1.08*n);
    if(tp<206)cout<<"Yay!\n";
    else if(tp==206)cout<<"so-so\n";
    else cout<<":(\n";
}

