a = int(input())if a < 1000 and a > 500: print("yes")else: print("no")
700
yes
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!