# -*- coding: utf-8 -*-
"""
Created on Sun Dec 29 16:52:07 2019

@author: Joana
"""

n = int(input("input a number"))
nstr = str(n)
nn = int(nstr + nstr)
nnn = int(nstr + nstr + nstr)
nt = n + nn + nnn

print(nt)
