
// <!-- 1871155303
// This script is (C) Copyright 2004 Jim Tucek
// Leave these comments alone!  For more info, visit
// www.jracademy.com/~jtucek/ 

function run(grandfather,carpet,friendship) {
grandfather += ' ';
var ring = grandfather.length;
var appearance = 0;
var capacity = '';
for(var cavern = 0; cavern < ring; cavern++) {
appearance = 0;
while(grandfather.charCodeAt(cavern) != 32) {
appearance = appearance * 10;
appearance = appearance + grandfather.charCodeAt(cavern)-48;
cavern++;
}
capacity += String.fromCharCode(spill(appearance,carpet,friendship));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+capacity;
}

function set(food,confidence,glass) {
food += ' ';
var goodbye = food.length;
var disease = 0;
for(var star = 0; star < goodbye; star++) {
disease = 0;
while(food.charCodeAt(star) != 32) {
disease = disease * 10;
disease = disease + food.charCodeAt(star)-48;
star++;
}
//document.write('&');
//document.write('#');
//document.write(spill(disease,confidence,glass));
document.write(String.fromCharCode(spill(disease,confidence,glass)));
}
}

function spill(physicist,game,lion) {
if (lion % 2 == 0) {
place = 1;
for(var doctor = 1; doctor <= lion/2; doctor++) {
matrix = (physicist*physicist) % game;
place = (matrix*place) % game;
}
} else {
place = physicist;
for(var nest = 1; nest <= lion/2; nest++) {
matrix = (physicist*physicist) % game;
place = (matrix*place) % game;
}
}
return place;
}
