class A
{
  Scanner sc=new Scanner(System.in);
  public static void main(String args[])
  {
    
    int a;
    String s;
    a=sc.nextInt();
    s=sc.next();
    if(a>=2300)
      System.out.println(a);
    else
      System.out.println(s);
  }
  
}
