def equals_sum_fifth_powers(x):
    """
    Return true if the number x equals the sum of its digits to the fifth power
    """
    digit_power_sum = 0
    digits_left = x
    while digits_left > 0:
        digit_power_sum += (digits_left % 10) ** 5
        digits_left //= 10

    return x == digit_power_sum