In case of getting NZEC every time you RUN code on IDE, refer to this post: Python, Error while taking input