int[] start = {70,250,75,200,50,45,20,90,7,350,100,60,150,25,10,5,40,15,1,2,30,3,300,12};
int[] toadd = {22,10,18,105,450,525,113,15,147,90,75,375,5,135,60,45,3,7,0,300,225,30,150,38};
String[] names ={"Maroon","Brown","Olive","Red","Orange","Yellow","Lime","Green","Teal","Aqua","Turquoise","Cyan","Blue","Navy","Purple","Magenta","Pink","Lavender","White","Gray","Black","Gold","Silver","Bronze"};
int[] waias = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
int[] waiae = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
boolean[] taken = {false,false,false,false,
false,false,false,false,false,false,false,false,
false,false,false,false,false,false,false,false,
false,false,false,false,false,false,false,false,
int timer, maxScore, x, y;
int[][] colors = {{130,0,0},{128,64,0},{117,112,0},{255,0,0},{255,130,0},{255,255,0},{0,255,0},{0,130,0},{0,127,125},{0,202,149},{0,255,153},{0,255,255},{0,0,255},{0,0,120},{140,0,255},{255,0,255},{255,122,255},{218,101,255},{255,255,255},{150,150,150},{30,30,30},{255,217,0},{189,189,189},{204,116,0}};
String[] after = {"st","nd","rd","th","th","th",
"th","th","th","th","th","th","th","th","th",
"th","th","th","th","th","st","nd","rd","th",
font = loadFont("Verdana");
font2 = loadFont("Impact");
for(int i = 0; i < 24; i++){
for(int j = 24; j >= 0; j--){
if(start[j] >= record && !taken[j]){
taken[recordHolder] = true;
for(int i = 0; i < 24; i++){
for(int i = 0; i < 24; i++){
for(int j = 24; j >= 0; j--){
if(start[j]+toadd[j] >= record && !taken[j]){
record = start[j]+toadd[j];
taken[recordHolder] = true;
if(i == 0) maxScore = record;
if(timer < 12000000000000){
for(int i = 0; i < 24; i++){
text((i+1)+after[i],margin-75,35+24*i);
perc = max((float(timer)-180)/300,0);
perc = min(max((float(timer)-480)/300,0),1);
perc = -cos(perc*PI)/2+0.5;
for(int j = 0; j < 24; j++){
fill(colors[j][0],colors[j][1],colors[j][2]);
x = int(750*(start[j]+float(toadd[j])*perc)/maxScore);
x = int(750*(start[j]+toadd[j])/maxScore);
y = int((waias[j]+(float(waiae[j])-float(waias[j]))*perc)*24);
text(names[j],margin+x+5,35+y);
text(addCommas(round((start[j]+toadd[j]*perc))),margin+x,35+y);
text(addCommas(start[j]+toadd[j]),margin+x,35+y);
text("ELIMINATED",names[j].length()*15+135+x,35+y);
if(waiae[j] >= 22 && timer > 1000 * 1.00){
text("ELIMINATED",names[j].length()*15+135+x,35+y);
for(int i = 0; i < s.length(); i++){
if(i >= 1 && (s.length()-i)%3 == 0){
output = output+s.charAt(i);