Prolog day 1