The logic here is flawless. - Imgur