String run(String input){
		String[] array = new Tokenizer().makeToken(input);
		double mChance = 0;
		double fChance = 0;
		for(int i = 0; i < array.length; i++){
			if(mProb.keySet().contains(array[i])){
			mChance = mChance + (Math.log(mProb.get(array[i])/(mProb.get(array[i]) + fProb.get(array[i])) / Math.log(2)));
			} else {
				mChance = mChance + (Math.log(k)/(mAmountWords + k * diffWords)) / Math.log(2);
			}
			if(fProb.keySet().contains(array[i])) {
			fChance = fChance + Math.log(fProb.get(array[i])/(mProb.get(array[i]) + fProb.get(array[i]))/Math.log(2));
			} else {
				fChance = fChance + (Math.log(k)/(fAmountWords + k * diffWords)) / Math.log(2);
			}
			
		}
//		System.out.println(mChance);
//		System.out.println(fChance);

		if(mChance > fChance) {
			return "MALE";
		} else if (fChance > mChance){
			return "FEMALE";
		} else {
			return "TIE";
		}

	 }