from machine import Pin
from utime import sleep
led= [Pin(1,Pin.OUT),
Pin(2,Pin.OUT),
Pin(3,Pin.OUT),
Pin(4,Pin.OUT),
Pin(5,Pin.OUT),
Pin(6,Pin.OUT),
Pin(7,Pin.OUT)
]
too=[
[1,0,0,1,1,1,1],
[0,0,1,0,0,1,0],
[0,0,0,0,1,1,0],
[1,0,0,1,1,0,0],
[0,1,0,0,1,0,0],
[0,1,0,0,0,0,0],
[0,0,0,1,1,1,1],
[0,0,0,0,0,0,0],
[0,0,0,0,1,0,0],
]
while True:
s=input()
a=int(s[0])
b=int(s[2])
uildel=s[1]
if uildel=='+':
c=a+b
if uildel=='-':
c=a-b
if uildel=='*':
c=a*b
if uildel=='/':
c=a//b
for i in range(7):
led[i].value(too[c-1][i])
sleep(1)