this code is to resolve this problem: https://www.beecrowd.com.br/judge/pt/problems/view/1973
Primary LanguageJava