repeat x=io.read()until x/3>700 and print(x)