Completed Day1:Prolog.