public static void rightTime(String time) {
        Matcher m = TIME.matcher(time);
        List<Long> list = new ArrayList<Long>();
        while (m.find()) {
            list.add(TimeUnit.HOURS.toMinutes(Long.parseLong(m.group(1))) + Long.parseLong(m.group(2)));
        }

        List<Long> normalizedTimes = generateAMPMTimes(list);
        int i, j, k;
        int len = normalizedTimes.size();
        for (i = 0; i < len - 2; i++) {
            for (j = i + 1; j < len - 1; j++) {
                for (k = j + 1; k < len; k++) {
                    long delta1 = Math.abs(normalizedTimes.get(i) - normalizedTimes.get(j));
                    long delta2 = Math.abs(normalizedTimes.get(j) - normalizedTimes.get(k));
                    if (delta1 == delta2) {
                        System.out.printf("Correct time is %02d:%02d, delta is %d minutes%n", TimeUnit.MINUTES.toHours(normalizedTimes.get(j)), normalizedTimes.get(j) % 60, delta1);
                        return;
                    }
                }
            }
        }
        System.out.println("Look at the sun.");
    }