int calculationsWithCoins(int a, int b, int c) { Set<Integer> res = new HashSet<>(); res.add(a+b); res.add(a+c); res.add(b+c); res.add(a); res.add(b); res.add(c); res.add(a+b+c); return res.size(); }