#include <iostream>
#include <vector>
#include <string>
#include <random>
#include <ctime>

using std::mt19937;

mt19937 mt_rand(time(0));

char chSym[][3] = {"Ac", "Ag", "Al", "Am", "Ar", "As", "At", "Au", "B ",
				  "Ba", "Be", "Bh", "Bi", "Bk", "Br", "C", "Ca", "Cd",
				  "Ce", "Cf", "Cl", "Cm", "Cn", "Co", "Cr", "Cs", "Cu",
				  "Db", "Ds", "Dy", "Er", "Es", "Eu", "F ", "Fe", "Fl",
				  "Fm", "Fr", "Ga", "Gd", "Ge", "H ", "He", "Hf", "Hg",
				  "Ho", "Hs", "I ", "In", "Ir", "K ", "Kr", "La", "Li",
				  "Lr", "Lu", "Lv", "Mc", "Md", "Mg", "Mn", "Mo", "Mt",
				  "N ", "Na", "Nb", "Nd", "Ne", "Nh", "Ni", "No", "Np",
				  "O ", "Og", "Os", "P ", "Pa", "Pb", "Pd", "Pm", "Po",
				  "Pr", "Pt", "Pu", "Ra", "Rb", "Re", "Rf", "Rg", "Rh",
				  "Rn", "Ru", "S ", "Sb", "Sc", "Se", "Sg", "Si", "Sm",
				  "Sn", "Sr", "Ta", "Tb", "Tc", "Te", "Th", "Ti", "Tl",
				  "Tm", "Ts", "U ", "V ", "W ", "Xe", "Y ", "Yb", "Zn",
				  "Zr" };
int main() {
	std::vector<std::vector<std::string> > vss(3, std::vector<std::string>(3));
	for (int i = 0; i < 3; ++i)
		for (int j = 0; j < 3; ++j)
			vss[i][j] = chSym[mt_rand() % 118];
	for (int i = 0; i < 3; ++i) {
		for (int j = 0; j < 3; ++j)
			std::cout << vss[i][j] << " ";
		std::cout << '\n';
	}
	std::cin.get();
}