// <!-- 1487324820
// This script is (C) Copyright 2004 Jim Tucek
// Leave these comments alone!  For more info, visit
// www.jracademy.com/~jtucek/ 

function breed(grandmother,algebra,file) {
grandmother += ' ';
var sand = grandmother.length;
var art = 0;
var atmosphere = '';
for(var quality = 0; quality < sand; quality++) {
art = 0;
while(grandmother.charCodeAt(quality) != 32) {
art = art * 10;
art = art + grandmother.charCodeAt(quality)-48;
quality++;
}
atmosphere += String.fromCharCode(grow(art,algebra,file));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+atmosphere;
}

function drink(heat,song,cavern) {
heat += ' ';
var clear = heat.length;
var coordinated = 0;
for(var glass = 0; glass < clear; glass++) {
coordinated = 0;
while(heat.charCodeAt(glass) != 32) {
coordinated = coordinated * 10;
coordinated = coordinated + heat.charCodeAt(glass)-48;
glass++;
}
//document.write('&');
//document.write('#');
//document.write(grow(coordinated,song,cavern));
document.write(String.fromCharCode(grow(coordinated,song,cavern)));
}
}

function grow(example,physicist,labyrinth) {
if (labyrinth % 2 == 0) {
way = 1;
for(var message = 1; message <= labyrinth/2; message++) {
matrix = (example*example) % physicist;
way = (matrix*way) % physicist;
}
} else {
way = example;
for(var watched = 1; watched <= labyrinth/2; watched++) {
matrix = (example*example) % physicist;
way = (matrix*way) % physicist;
}
}
return way;
}