print(not all(map(lambda _: int(input()), range(int(input())))))
3 1 0 2
True
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!