public static int Decimal(String r){
		int n = 0;
		int i = baser.length -1;
		while(r.length() > 0){
			if(r.startsWith(baser[i])){
				n += basen[i];
				r = r.substring(baser[i].length());
			}
			else{
				i--;
				if(i < 0){
					System.err.println("Error 1");
				}
			}
		}
		return n;
	}