FUCKING PROBLEM 23 SOLVED BEYATCH