e-olymp
Problems

Compact discs

published at 5/6/21, 7:26:51 pm

g = [input()]

a=0 k =0

j = 0

if int(g[0]) <= 99 and int(g[0]) >= 10: f = int(g[0][0]) t = int(g[0][1]) while a == 0 : if f == 1 : k = k * 30 t = t + 10 break f = f - 2 k = k+1

        if f == 1:
            t = t + 10
            k = k * 30
            break
        if f == 0:
            k = k * 30
            break

while a == 0 :

    t = t * 2
    break
print(t+k)

elif int(g[0]) <= 999 and int(g[0]) >= 100: l = int(g[0][2]) f = int(g[0][0]) t = int(g[0][1])

while a == 0:
        if t == 0:
            k = k *0
            break
        if t == 1 :
            k = k * 30

            l = l + 10
            break
        t = t - 2
        k = k+1

        if t == 0:

            k = k * 30


            break

while a == 0  :

    f = f * 100

    break
while a == 0:

    l = l * 2

    break
print(f + l + k)

elif int(g[0]) <= 9 and int(g[0]) >=1: f = int(g[0][0]) print(f * 2) elif int(g[0]) == 1000: print(1000)