#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    int i;
    cin>>s;
    s[3]=s[0];
   for(i=1;i<4;i++)
   {
       cout<<s[i];
   }
   cout<<endl;
    return 0;
}
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include <bitset>

using namespace std;

int main(void) {
  int price;
  // input
  cin >> price;

  int p = price * 1.08;

  if (206 > p) {
    cout << "Yay!" << endl;
  } else if(206 == p){
    cout << "so-so" << endl;
  }else{
    cout << ":(" << endl;
  }
}