public class EggCompensation { public static void main(String[] args) { int eggs = 0; while (true) { if (eggs % 2 == 1 && eggs % 3 == 2 && eggs % 5 == 4) { System.out.println(eggs); break; } eggs++; } }}