/***************************************************
Class Year From E-Mail Address
 
Write a program that reads in a midshipman's e-mail
address and prints out his class year. For example,
if you read in m091220@usna.edu you would print out
"Class of 2009".  You may assume that the class year
is 2000 or later.
***************************************************/
#include <iostream>
#include <cmath>
using namespace std;
 
int main()
{
  // read alpha code
  char c;
  cin >> c;     // read "m" character
  int alpha;
  cin >> alpha; // read number, we ignore the rest
 
  // compute class number
  int d, y;
  d = alpha / 10000;
  y = d + 2000;
 
  // write out result
  cout << "Class of " << y << endl;
 
  return 0;
}