// SailorSubCoconut.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int main(int argc, char* argv[])
{
int a=6;
int tmpa;
int i;
while(1)
{
tmpa=a;
for( i=0;i<5;i++)
{
if((tmpa*5)%4==0)
tmpa=(tmpa*5)/4+1;
else
{
a+=5;
goto next;
}
}
if(i==5)
{
printf("a0=%d\n",tmpa);
break;
}
else
{
printf("error!\n");
}
next: ;
}
//printf("Hello World!\n");
return 0;
}
/*
a0=15621
Press any key to continue
*/