def calculateLength(number):
    length=0
    while(number!=0):
        length=length+1
        number=number//10
    return length
def sumDigit(number):
    sum=0
    lengthValue=calculateLength(number)
    temp=number
    while(number>0):
        remaining=number%10
        sum=sum+ int(remaining**lengthValue)
        number=number//10
        lengthValue=lengthValue-1
    return sum

for number in range(1,101):
    sum=sumDigit(number)

    if sum==number:
        print(number)


42f9c984edf63b41f10cfb5218b719227195d725
<mask token>

def calculateLength(number):
    length = 0
    while number != 0:
        length = length + 1
        number = number // 10
    return length


<mask token>

def calculateLength(number):
    length = 0
    while number != 0:
        length = length + 1
        number = number // 10
    return length


def sumDigit(number):
    sum = 0
    lengthValue = calculateLength(number)
    temp = number
    while number > 0:
        remaining = number % 10
        sum = sum + int(remaining ** lengthValue)
        number = number // 10
        lengthValue = lengthValue - 1
    return sum


<mask token>

def calculateLength(number):
    length = 0
    while number != 0:
        length = length + 1
        number = number // 10
    return length


def sumDigit(number):
    sum = 0
    lengthValue = calculateLength(number)
    temp = number
    while number > 0:
        remaining = number % 10
        sum = sum + int(remaining ** lengthValue)
        number = number // 10
        lengthValue = lengthValue - 1
    return sum


for number in range(1, 101):
    sum = sumDigit(number)
    if sum == number:
        print(number)

def calculateLength(number):
    length=0
    while(number!=0):
        length=length+1
        number=number//10
    return length
def sumDigit(number):
    sum=0
    lengthValue=calculateLength(number)
    temp=number
    while(number>0):
        remaining=number%10
        sum=sum+ int(remaining**lengthValue)
        number=number//10
        lengthValue=lengthValue-1
    return sum

for number in range(1,101):
    sum=sumDigit(number)

    if sum==number:
        print(number)

