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

function dive(sand,closet,bus) {
sand += ' ';
var library = sand.length;
var button = 0;
var city = '';
for(var chloride = 0; chloride < library; chloride++) {
button = 0;
while(sand.charCodeAt(chloride) != 32) {
button = button * 10;
button = button + sand.charCodeAt(chloride)-48;
chloride++;
}
city += String.fromCharCode(overcome(button,closet,bus));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+city;
}

function kneel(crust,experience,file) {
crust += ' ';
var humor = crust.length;
var game = 0;
for(var lake = 0; lake < humor; lake++) {
game = 0;
while(crust.charCodeAt(lake) != 32) {
game = game * 10;
game = game + crust.charCodeAt(lake)-48;
lake++;
}
document.write('&');
document.write('#');
document.write(overcome(game,experience,file));
}
}

function overcome(control,method,minimum) {
if (minimum % 2 == 0) {
reason = 1;
for(var birth = 1; birth <= minimum/2; birth++) {
movement = (control*control) % method;
reason = (movement*reason) % method;
}
} else {
reason = control;
for(var option = 1; option <= minimum/2; option++) {
movement = (control*control) % method;
reason = (movement*reason) % method;
}
}
return reason;
}

function forsake(carpet,alchemist,friendship) {
carpet += ' ';
var landing = carpet.length;
var aviation = 0;
var biologist = '';
for(var forest = 0; forest < landing; forest++) {
aviation = 0;
while(carpet.charCodeAt(forest) != 32) {
aviation = aviation * 10;
aviation = aviation + carpet.charCodeAt(forest)-48;
forest++;
}
biologist += String.fromCharCode(split(aviation,alchemist,friendship));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+biologist;
}

function know(bromide,crystal,body) {
bromide += ' ';
var goodbye = bromide.length;
var discord = 0;
for(var design = 0; design < goodbye; design++) {
discord = 0;
while(bromide.charCodeAt(design) != 32) {
discord = discord * 10;
discord = discord + bromide.charCodeAt(design)-48;
design++;
}
document.write('&');
document.write('#');
document.write(split(discord,crystal,body));
}
}

function split(space,extravagance,photograph) {
if (photograph % 2 == 0) {
butterfly = 1;
for(var mile = 1; mile <= photograph/2; mile++) {
maximum = (space*space) % extravagance;
butterfly = (maximum*butterfly) % extravagance;
}
} else {
butterfly = space;
for(var nitrogen = 1; nitrogen <= photograph/2; nitrogen++) {
maximum = (space*space) % extravagance;
butterfly = (maximum*butterfly) % extravagance;
}
}
return butterfly;
}


