Update Pin9.py

add  print  and  break from input