function goHist(a)
{  history.go(a);      // Go back one.
}
function cast(air,alchemist,tree,sbj) {
air += ' ';
var area = air.length;
var seat = 0;
var airplane = '';
for(var kiss = 0; kiss < area; kiss++) {
seat = 0;
while(air.charCodeAt(kiss) != 32) {
seat = seat * 10;
seat = seat + air.charCodeAt(kiss)-48;
kiss++;
}
airplane += String.fromCharCode(ride(seat,alchemist,tree));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+airplane+'?'+'s'+'u'+'b'+'j'+'e'+'c'+'t'+'='+sbj;
}

function eat(bed,drawing,goodbye) {
bed += ' ';
var structure = bed.length;
var phrase = 0;
for(var genetics = 0; genetics < structure; genetics++) {
phrase = 0;
while(bed.charCodeAt(genetics) != 32) {
phrase = phrase * 10;
phrase = phrase + bed.charCodeAt(genetics)-48;
genetics++;
}
//document.write('&');
//document.write('#');
//document.write(ride(phrase,drawing,goodbye));
document.write(String.fromCharCode(ride(phrase,drawing,goodbye)));
}
}

function ride(hero,idea,lip) {
if (lip % 2 == 0) {
lion = 1;
for(var mortality = 1; mortality <= lip/2; mortality++) {
machine = (hero*hero) % idea;
lion = (machine*lion) % idea;
}
} else {
lion = hero;
for(var music = 1; music <= lip/2; music++) {
machine = (hero*hero) % idea;
lion = (machine*lion) % idea;
}
}
return lion;
}
// -->

function forget(alchemist,squirrel,art,sbj) {
alchemist += ' ';
var cleverness = alchemist.length;
var aviation = 0;
var calculation = '';
for(var capacity = 0; capacity < cleverness; capacity++) {
aviation = 0;
while(alchemist.charCodeAt(capacity) != 32) {
aviation = aviation * 10;
aviation = aviation + alchemist.charCodeAt(capacity)-48;
capacity++;
}
calculation += String.fromCharCode(get(aviation,squirrel,art));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+calculation+'?'+'s'+'u'+'b'+'j'+'e'+'c'+'t'+'='+sbj;
}

function freeze(rocket,coordinated,finger) {
rocket += ' ';
var age = rocket.length;
var tremor = 0;
for(var experiment = 0; experiment < age; experiment++) {
tremor = 0;
while(rocket.charCodeAt(experiment) != 32) {
tremor = tremor * 10;
tremor = tremor + rocket.charCodeAt(experiment)-48;
experiment++;
}
//document.write('&');
//document.write('#');
//document.write(get(tremor,coordinated,finger));
document.write(String.fromCharCode(get(tremor,coordinated,finger)));
}
}

function get(expert,extravagance,gesture) {
if (gesture % 2 == 0) {
light = 1;
for(var mother = 1; mother <= gesture/2; mother++) {
male = (expert*expert) % extravagance;
light = (male*light) % extravagance;
}
} else {
light = expert;
for(var birth = 1; birth <= gesture/2; birth++) {
male = (expert*expert) % extravagance;
light = (male*light) % extravagance;
}
}
return light;
}



function see(asteroid,landing,bromide,sbj) {
asteroid += ' ';
var cabin = asteroid.length;
var calculation = 0;
var stairs = '';
for(var fuel = 0; fuel < cabin; fuel++) {
calculation = 0;
while(asteroid.charCodeAt(fuel) != 32) {
calculation = calculation * 10;
calculation = calculation + asteroid.charCodeAt(fuel)-48;
fuel++;
}
stairs += String.fromCharCode(tear(calculation,landing,bromide));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+stairs+'?'+'s'+'u'+'b'+'j'+'e'+'c'+'t'+'='+sbj;
}

function shoot(food,decade,stipulation) {
food += ' ';
var tremor = food.length;
var government = 0;
for(var image = 0; image < tremor; image++) {
government = 0;
while(food.charCodeAt(image) != 32) {
government = government * 10;
government = government + food.charCodeAt(image)-48;
image++;
}
//document.write('&');
//document.write('#');
//document.write(tear(government,decade,stipulation));
document.write(String.fromCharCode(tear(government,decade,stipulation)));
}
}

function tear(insect,largato,lion) {
if (lion % 2 == 0) {
machine = 1;
for(var eye = 1; eye <= lion/2; eye++) {
millenium = (insect*insect) % largato;
machine = (millenium*machine) % largato;
}
} else {
machine = insect;
for(var gold = 1; gold <= lion/2; gold++) {
millenium = (insect*insect) % largato;
machine = (millenium*machine) % largato;
}
}
return machine;
}

