PASCAL 2017 Problem 16

lol you could go up to PASCAL 2017 Problem 7 and it’s still that easy