function trainLab(h, w) {
const widthSm = w * 100;
const heightSm = h * 100;
const rabotnoMShirinaSm = 70;
const rabotnoMDyljinaSm = 120;
const coridor = 100;
const zagubeniMesta = 3;
const realWidtSm = widthSm - coridor;
const masiNaRed = Math.floor(realWidtSm / rabotnoMShirinaSm);
const redoveSMasi = Math.floor(heightSm / rabotnoMDyljinaSm);
const ob6toMestaVZalata = masiNaRed * redoveSMasi - zagubeniMesta;
return ob6toMestaVZalata;
}