#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#define N 20
int main(void)
{

	srand(time(NULL));
	char s[N], ans[2];
  int 	start, i, j;

	scanf("%s", s);

	int count=0;
	for(i=0; s[i]!='\0';i++){
		count++;
	}

	printf("s%d\n",count);
	if(count <= 5){
		start = 1;
	}else{	
		start = rand() % (count-1)+1;
	}

	for(j=0,i = start-1 ; i < start+2 ; i++,j++){
		ans[j] = s[i];
	}

	for(j = 0 ; j<3;j++){
		printf("%c", ans[j]);
	}
	printf("\n");

	return 0;
}