/* ConsoleApplication35.cpp : This file contains the 'main' function.Program execution begins and ends there.
*/

#include <iostream>
using namespace std;
typedef unsigned long long ull;

void swap(int *a,int *b) {
	int t = *a; *a = *b; *b = t;
}

void swap1(int &a, int &b) {
	int t = a; a = b; b = t;
}

unsigned int gist[10];

void lcm(void) {
	for (int i = 0; i < 10; i++)
		gist[i] = 0;
	const int a = 75, c = 74, m = (1 << 16) + 1;
	ull x0 = 1,x;
	double d;
	for (int i = 0; i < 10000; i++) {
		x = (a * x0 + c) % m;
		d = (double)x / m;
		gist[(int)(d * 10)]++;
		x0 = x;
	}
	for (int i = 0; i < 10; i++)
		cout<<gist[i] << endl;
}

int main() {
	/*
	char s[100] = "Hello, world!";//={'H','e','l','l','o',' ','w','o','r','l','d','!','\0'};
	char* p = nullptr;// NULL;
	p = new char[100];
	unsigned long long v;
	ull v2=0;
	for (int i = 0; i < 100; i++) {
		if (s[i] == '\0')
			break;
		else {}
		v2++;
	}
	cout << v2 << '\n'<<strlen(s)<<endl;
	int a, b;
	cin >> a >> b;
	swap(&a, &b);
	cout << a << ":" << b << endl;
	swap1(a, b);
	cout << a << ":" << b << endl;

	float f; double d;

	cout << s << endl;
	delete[] p;*/
	lcm();
	return 0;
}
