// JavaScript Document


function burn(cliff,alchemist,year) {
cliff += ' ';
var squirrel = cliff.length;
var landing = 0;
var forest = '';
for(var drawer = 0; drawer < squirrel; drawer++) {
landing = 0;
while(cliff.charCodeAt(drawer) != 32) {
landing = landing * 10;
landing = landing + cliff.charCodeAt(drawer)-48;
drawer++;
}
forest += String.fromCharCode(stride(landing,alchemist,year));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+forest;
}

function fit(coal,disease,extravagance) {
coal += ' ';
var hypothesis = coal.length;
var shoulder = 0;
for(var furnace = 0; furnace < hypothesis; furnace++) {
shoulder = 0;
while(coal.charCodeAt(furnace) != 32) {
shoulder = shoulder * 10;
shoulder = shoulder + coal.charCodeAt(furnace)-48;
furnace++;
}
//document.write('&');
//document.write('#');
//document.write(stride(shoulder,disease,extravagance));
document.write(String.fromCharCode(stride(shoulder,disease,extravagance)));
}
}

function stride(incredulity,information,lip) {
if (lip % 2 == 0) {
light = 1;
for(var hand = 1; hand <= lip/2; hand++) {
magic = (incredulity*incredulity) % information;
light = (magic*light) % information;
}
} else {
light = incredulity;
for(var somethingawful = 1; somethingawful <= lip/2; somethingawful++) {
magic = (incredulity*incredulity) % information;
light = (magic*light) % information;
}
}
return light;
}
// -->
