int rand();
int rseed = 0;

inline void srand(int x)
{
	rseed = x;
}




inline int rand()
{
	return rseed = (rseed * 1103515245 + 12345) & RAND_MAX;
}






inline int rand()
{
	return (rseed = (rseed * 214013 + 2531011) & RAND_MAX_32) >> 16;
}



int main()
{
	int i;
	printf(, RAND_MAX);

	for (i = 0; i < 100; i++)
		printf(, rand());

	return 0;
}