#include <stdio.h>

int main()
{
	char thestring [100];
	scanf("%s", thestring);

	int fmatch, pstart, currmatch, l;

	l=0;

	while(thestring[l]!='\0')
	l++;

	fmatch=0;
	pstart=1;
	currmatch=1;
	while(currmatch<l)
	{


		if(fmatch<pstart)
		{	
			//In the beginning, currmatch = pstart
			if (thestring[fmatch]==thestring[currmatch])// Regular comparison when pstart has been set, and pattern is being recognized
			{
				fmatch++;
				currmatch++;
			}
			else //if(thestring[fmatch]!=thestring[currmatch])
			{
				fmatch=0;
				if(pstart==currmatch)
					currmatch++;
				pstart=currmatch;
			}
		}
		else
			fmatch=0; // Set fmatch to 0 and then check again if current one matches fmatch
		
	}

	if(fmatch==pstart)
	printf("true");
	else
	printf("false");
}		