diff --git a/.idea/misc.xml b/.idea/misc.xml
index a165cb3..35bdbab 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/src/coffeeMachine/Main.java b/src/coffeeMachine/Main.java
index 39e98c9..4307eab 100644
--- a/src/coffeeMachine/Main.java
+++ b/src/coffeeMachine/Main.java
@@ -1,7 +1,42 @@
package coffeeMachine;
-
+import java.util.Scanner;
public class Main {
public static void main(String[] args) {
- System.out.print("Hello world!");
+ Scanner scanner = new Scanner(System.in);
+ System.out.println("Write how many ml of water the coffee machine has: ");
+ int water = scanner.nextInt();
+ System.out.println ("Write how many ml of milk the coffee machine has: ");
+ int milk = scanner.nextInt();
+ System.out.println ("Write how many grams of coffee beans the coffee machine has: ");
+ int coffee = scanner.nextInt();
+ System.out.println ("Write how many cups of coffee you will need: ");
+ int cups = scanner.nextInt();
+int amount_w = water/200;
+int amount_m = milk/50;
+int amount_c = coffee-cups /15;
+int[] amount = {amount_w,amount_m,amount_c};
+int min = amount[0];
+for (int i=0;i<3;i++)
+{
+ if (amount[i]cups) {
+ System.out.println("Yes, I can make that amount of coffee (and even ");
+ System.out.print(min-cups);
+ System.out.println(" more than that)");
+ }
+
}
}
\ No newline at end of file