import sys
from struct import pack
min = int(sys.argv[1])
max = int(sys.argv[2])
while True:
 o = sys.stdin.read(1)
 c = str(format(ord(o),"08b"))
 for d in range(8):
  if bool(int(c[d])):
   sys.stdout.write(pack("I",max-1))
  else:
   sys.stdout.write(pack("I",min))
 sys.stdout.write(pack("I",min+1))
ca7ad3c0ae475d86c26a09fc3ceb55075383d61a
<mask token>

<mask token>
while True:
    o = sys.stdin.read(1)
    c = str(format(ord(o), '08b'))
    for d in range(8):
        if bool(int(c[d])):
            sys.stdout.write(pack('I', max - 1))
        else:
            sys.stdout.write(pack('I', min))
    sys.stdout.write(pack('I', min + 1))

<mask token>
min = int(sys.argv[1])
max = int(sys.argv[2])
while True:
    o = sys.stdin.read(1)
    c = str(format(ord(o), '08b'))
    for d in range(8):
        if bool(int(c[d])):
            sys.stdout.write(pack('I', max - 1))
        else:
            sys.stdout.write(pack('I', min))
    sys.stdout.write(pack('I', min + 1))

import sys
from struct import pack
min = int(sys.argv[1])
max = int(sys.argv[2])
while True:
    o = sys.stdin.read(1)
    c = str(format(ord(o), '08b'))
    for d in range(8):
        if bool(int(c[d])):
            sys.stdout.write(pack('I', max - 1))
        else:
            sys.stdout.write(pack('I', min))
    sys.stdout.write(pack('I', min + 1))

import sys
from struct import pack
min = int(sys.argv[1])
max = int(sys.argv[2])
while True:
 o = sys.stdin.read(1)
 c = str(format(ord(o),"08b"))
 for d in range(8):
  if bool(int(c[d])):
   sys.stdout.write(pack("I",max-1))
  else:
   sys.stdout.write(pack("I",min))
 sys.stdout.write(pack("I",min+1))