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