print(('000'+input())[-3:])