/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
System.
out.
println("Ohoho nice coffee is afforded");
int moneyAmount = 10;
int espressoPrice = 60;
int americanoPrice = 100;
int waterPrice = 20;
int milkPrice = 40;
boolean canbuyanything = false;
if(moneyAmount >= espressoPrice)
{
System.
out.
println("You can buy espresso"); canbuyanything = true;
}
if(moneyAmount >= waterPrice)
{
System.
out.
println("You can buy water"); canbuyanything = true;
}
if(moneyAmount >= milkPrice) {
System.
out.
println("You can buy milk"); canbuyanything = true;
}
if (!canbuyanything) {
System.
out.
println("Not enough money"); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN5c3RlbS5vdXQucHJpbnRsbigiT2hvaG8gbmljZSBjb2ZmZWUgaXMgYWZmb3JkZWQiKTsKCQkKCQlpbnQgbW9uZXlBbW91bnQgPSAxMDsKCQkKCQlpbnQgZXNwcmVzc29QcmljZSA9IDYwOwoJCWludCBhbWVyaWNhbm9QcmljZSA9IDEwMDsKCQlpbnQgd2F0ZXJQcmljZSA9IDIwOwoJCWludCBtaWxrUHJpY2UgPSA0MDsKCQkKCQlib29sZWFuIGNhbmJ1eWFueXRoaW5nID0gZmFsc2U7CgkJCgkJaWYobW9uZXlBbW91bnQgPj0gZXNwcmVzc29QcmljZSkgCgkJewoJCQ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