'''
#zad 1
i = 1
while i <= 5:
print(i)
i = i+1
'''
'''
#zad 3 to jest zadanie 2 ale jest w 3 linijce wiec latwiej tak sie polapac
i = 2
while i <=10:
if i%2 == 0:
print(i)
i = i + 2
'''
'''
#zad 4
i = 10
while i > 0:
print(i)
i = i - 1
'''
'''
#zad 5
i = 1
while i < 100:
print(i)
i = i + 5
'''
'''
#zad 6
i = 1
suma = 0
while i <= 10:
suma = suma + i
print(suma)
i = i+1
'''
'''
#zad 7
for in range (10) :
print('a')
'''
'''
'''
'''
# zad 8
i = 1
while i <= 30:
if i%3 == 0:
print(i)
i = i+ 1
'''
'''
i = 100
while i < 300:
if i%7 == 0:
print(i)
'''
'''
#zad 11
i = 1
while i <= 5:
print(i)
i = i+1
'''
'''
#zad 12
i = 2
while i <=10:
if i%2 == 0:
print(i)
i = i + 2
'''
'''
#zad 13
i = 1
suma = 0
while i <= 10:
suma = suma + i
print(suma)
i = i+1
'''
'''
#zad 16
i = 10
while i > 0:
print(i)
i = i - 1
'''
'''
#zad 17
i = 1
while i <= 30:
if i%3 == 0:
print(i)
i = i+ 1
'''
'''
#zad 18
i = 1
while i <= 15:
if i%2== 1:
print(i)
i = i +1
'''
'''
# zad 19
i = 1
while i <= 20:
if i%4 == 0:
print(i)
i = i +1
'''
JycnCiN6YWQgMSAKaSA9IDEKd2hpbGUgICBpIDw9IDU6CiAgICBwcmludChpKQogICAgaSA9IGkrMQonJycKJycnCiN6YWQgMyB0byBqZXN0IHphZGFuaWUgMiBhbGUgamVzdCB3IDMgbGluaWpjZSB3aWVjIGxhdHdpZWogdGFrIHNpZSBwb2xhcGFjIAppID0gMgp3aGlsZSAgaSA8PTEwOgogICAgaWYgaSUyID09IDA6CiAgICAgICAgcHJpbnQoaSkKICAgICAgICBpID0gaSArIDIKJycnCicnJwojemFkIDQgCmkgPSAxMAp3aGlsZSBpID4gMDoKICAgIHByaW50KGkpCiAgICBpID0gaSAtIDEKJycnCicnJwojemFkIDUgCmkgPSAxCndoaWxlIGkgPCAxMDA6CiAgICBwcmludChpKQogICAgaSA9IGkgKyA1CicnJwonJycKI3phZCA2CmkgPSAxCnN1bWEgPSAwCndoaWxlIGkgPD0gMTA6CiAgICBzdW1hID0gc3VtYSArIGkKICAgIHByaW50KHN1bWEpCiAgICBpID0gaSsxCicnJwonJycKI3phZCA3Cgpmb3IgaW4gcmFuZ2UgKDEwKSA6CiAgICBwcmludCgnYScpCicnJwogICAgCiAgICAKJycnCicnJwonJycKIyB6YWQgOAppID0gMQp3aGlsZSBpIDw9IDMwOgogICAgaWYgaSUzID09IDA6CiAgICAgICAgcHJpbnQoaSkKICAgIGkgPSBpKyAxCicnJwonJycKaSA9IDEwMAp3aGlsZSBpIDwgMzAwOgogICAgaWYgaSU3ID09IDA6CiAgICAgICAgcHJpbnQoaSkKJycnCicnJwojemFkIDExIAoKaSA9IDEKd2hpbGUgICBpIDw9IDU6CiAgICBwcmludChpKQogICAgaSA9IGkrMQonJycKJycnCiN6YWQgMTIKaSA9IDIKd2hpbGUgIGkgPD0xMDoKICAgIGlmIGklMiA9PSAwOgogICAgICAgIHByaW50KGkpCiAgICAgICAgaSA9IGkgKyAyCicnJwonJycKI3phZCAxMwppID0gMQpzdW1hID0gMAp3aGlsZSBpIDw9IDEwOgogICAgc3VtYSA9IHN1bWEgKyBpCiAgICBwcmludChzdW1hKQogICAgaSA9IGkrMQonJycKJycnCiN6YWQgMTYKaSA9IDEwCndoaWxlIGkgPiAwOgogICAgcHJpbnQoaSkKICAgIGkgPSBpIC0gMQonJycKJycnCiN6YWQgMTcKaSA9IDEKd2hpbGUgaSA8PSAzMDoKICAgIGlmIGklMyA9PSAwOgogICAgICAgIHByaW50KGkpCiAgICBpID0gaSsgMQonJycKJycnCiN6YWQgMTgKaSA9IDEKd2hpbGUgaSA8PSAxNToKICAgIGlmIGklMj09IDE6CiAgICAgICAgcHJpbnQoaSkKICAgIGkgPSBpICsxCicnJwonJycKIyB6YWQgMTkKCmkgPSAxIAp3aGlsZSBpIDw9IDIwOgogICAgaWYgaSU0ID09IDA6CiAgICAgICAgcHJpbnQoaSkKICAgIGkgPSBpICsxCicnJw==