#include <stdio.h>
main()
{
int a,b,c;
printf("input Final number\n");
scanf("%d",&a);
if (a%6==1)
{printf(" 1th person\n");}
else if(a%6==2)
{printf(" 2th person\n");}
else if(a%6==3)
{printf(" 3th person\n");}
else if(a%6==4)
{printf(" 4th person\n");}
else if(a%6==5)
{printf(" 5th person\n");}
else if(a%6==0)
{printf(" 6th person\n");}
}