using System;
using System.IO;
using System.Linq;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
var y = Convert.ToInt32(File.ReadAllText("cubes.dat").First().ToString());
int x3 = 8;
int x1 = (int)Math.Pow(y - 2,2) * 6;
int x0 = (int) Math.Pow(y - 2,2) * (y - 2);
int x2 = (y - 2) * 4 * 2 + (y - 2) * 4;
File.WriteAllText("cubes.sol", "0/" + x0 + " 1/" + x1 + " 2/" + x2 + " 3/" + x3);
}
}
}