Codeforces 2022-11-29 [Codeforces] 791A - Bear and Big Brother (Java) Bear and Big Brother algorithms