from decimal import Decimal N = int(input()) cnt = 0 D_str = "0." for i in range(1,100): D_str += str(i) D = Decimal(D_str) print(D * N)