#include<bits/stdc++.h>
using namespace std;
int main(){
	int r,g,b;
	//title
	for(r=0;r<256;r+=4){
		for(g=r;g<256;g+=4){
			for(b=g;b<256;b+=4){
				char x[101]={},y[101]={},z[101]={};
				itoa(r,x,10);
				itoa(g,y,10);
				itoa(b,z,10);
				cout<<"\033[48;2;"<<x<<";"<<y<<";"<<z<<"m   ";
			}
		}
	}
	for(int i=0;i<10000;i++){
		cout<<" ";
	}cout<<"\033[38;2;255;255;255m";
	return 0;
}