"""
Question 15
Question:
Write a program that computes the value of a+aa+aaa+aaaa with a given digit as the value of a.

Suppose the following input is supplied to the program:

9
Then, the output should be:

11106
Hints:
In case of input data being supplied to the question, it should be assumed to be a console input."""

a = input()
# initialing an integer and empty string
total, tmp = 0, str()

for i in range(4):
    # concatenating 'a' to 'tmp'
    tmp += a
    # converting string type to integer type
    total += int(tmp)

print(total)
