inputer = int(input()) result =1 if inputer ==1: result=1 elif lister >1 and lister <4: result=99999+inputer else: result=100000+inputer print(result)