n=int(input())
def zz(lol):
    k=str(n)
    b=k+k
    c=k+k+k
    d=int(b)+int(c)+int(n)
    return (d)
print(zz(n))
e6ea98d1d43f9fe850eb0287a9b771993abfb61f
<mask token>

<mask token>


def zz(lol):
    k = str(n)
    b = k + k
    c = k + k + k
    d = int(b) + int(c) + int(n)
    return d


<mask token>

<mask token>


def zz(lol):
    k = str(n)
    b = k + k
    c = k + k + k
    d = int(b) + int(c) + int(n)
    return d


print(zz(n))

n = int(input())


def zz(lol):
    k = str(n)
    b = k + k
    c = k + k + k
    d = int(b) + int(c) + int(n)
    return d


print(zz(n))

n=int(input())
def zz(lol):
    k=str(n)
    b=k+k
    c=k+k+k
    d=int(b)+int(c)+int(n)
    return (d)
print(zz(n))