///////////////////////////////
//
//  Validator
//

#include "testlib.h"
#include <iostream>
#include <string>
using namespace std;
using ll = long long;
using ull = unsigned long long;

const string ChList = "abcdefghijklmnopqrstuvwxyz";
const char MarkChar = '#';

string S;

int main() {
  registerValidation();

  S = inf.readToken();
  ensure(2 <= S.size() && S.size() <= 100);
  int markCount = 0;
  for(int i=0; i<S.size(); i++){
    if(S[i] == MarkChar) markCount++;
    else{
      ensuref(ChList.find(S[i]) != string::npos, "FAIL Condition failed: \" S[%d] is a invalid char.\"");
    }
  }
  ensure(markCount == 2);
  inf.readEoln();
  inf.readEof();

  int lMark = (int)S.find('#');
  int rMark = (int)S.find('#',lMark+1);
  string ans = S.substr(lMark+1,rMark-lMark-1);
  printf("%s\n",ans.c_str());
  return 0;
}