void md(string dir)
{
    if (!exists(dir))
        system("mkdir -p " + dir);
}
