for data in (123, 0, 999, 42):
    print '%03d' % data
