class BasicLoop {

	public String doSomethingWithInput(String input) {
		try {
			String[] articles = input.split(",");
			for (String article : articles) {
				switch (Articles.valueOf(article.trim().toLowerCase())) {
				case pommes:
					total += 100;
					total += remisePommesGlobale();
					break;
				case apples:
					total += 100;
					total += remiseApples();
					total += remisePommesGlobale();
					break;
				case mele:
					total += 100;
					total += remiseMele();
					total += remisePommesGlobale();
					break;
				case cerises:
					total += 75;
					total += remiseCerises();
					break;
				case bananes:
					total += 150;
					total += remiseBananes();
					break;
				}
				total += remiseFruitGlobale();
			}
			return "< " + String.valueOf(total);
		} catch (IllegalArgumentException|NullPointerException e) {
			return "< " + input;
		}
	}

}