#include<stdio.h>
#include<string.h>
#include<time.h>
#include<stdlib.h>
int main(){
 char S[21];
  scanf("%s",S);
  srand((unsigned)time(NULL));
  int sPos;
  if(strlen(S)==3){
   sPos = rand() % (strlen(S) - 2);
  }else{
   sPos = 0;
  }
  S[sPos+3]='\0';
  printf("%s",&S[sPos]);
  return 0;
}