
function beat(friendship,previous,beast) {
friendship += ' ';
var biochemist = friendship.length;
var edge = 0;
var forest = '';
for(var horse = 0; horse < biochemist; horse++) {
edge = 0;
while(friendship.charCodeAt(horse) != 32) {
edge = edge * 10;
edge = edge + friendship.charCodeAt(horse)-48;
horse++;
}
forest += String.fromCharCode(string(edge,previous,beast));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+forest;
}

function leap(whine,circumstance,courtesy) {
whine += ' ';
var diablura = whine.length;
var photograph = 0;
for(var human = 0; human < diablura; human++) {
photograph = 0;
while(whine.charCodeAt(human) != 32) {
photograph = photograph * 10;
photograph = photograph + whine.charCodeAt(human)-48;
human++;
}
//document.write('&');
//document.write('#');
//document.write(string(photograph,circumstance,courtesy));
document.write(String.fromCharCode(string(photograph,circumstance,courtesy)));
}
}

function string(pencil,mathematical,watched) {
if (watched % 2 == 0) {
mission = 1;
for(var name = 1; name <= watched/2; name++) {
ship = (pencil*pencil) % mathematical;
mission = (ship*mission) % mathematical;
}
} else {
mission = pencil;
for(var option = 1; option <= watched/2; option++) {
ship = (pencil*pencil) % mathematical;
mission = (ship*mission) % mathematical;
}
}
return mission;
}

