static String generateWord(int value){
		if (value==1000)
			return "onethousand";
		String word = "";
		int level = 0;
		if(value %100 <20 && value%100 >10){
			level=2;
			word=teens[(value%100) - 10];
			value/=100;
		}
		while(value>0){
			if (level==0){
				word=singleDigit[value%10];
			}
			else if (level==1){
				word=tens[value%10]+word;
			}
			else if (level==2){
				if (word.isEmpty())
					word=singleDigit[value%10]+hundred+word;
				else
					word=singleDigit[value%10]+hundred+and+word;
			}
			level++;
			value/=10;
		}
		return word;
	}