CODEVS 3117 (easy)