from machine import Pin
import time
m=0
led=Pin(7,Pin.OUT)
led.low()
while(1):
m=int(input("Enter the condition:"))
if(m==1):
led.value(1)
print("on")
elif(m==0):
led.value(0)
print("off")
else:
print("unknown characters")