def armstrong(num: int)->str:
    """
    Function checks by getting the digits of the number and powering them to length of number,
    and adding together to compare if we are getting same number or not.
    Input: Integer
    Output: String (Sentence telling armstrong or not)
    """
    n = 0
    result = 0
    copynum = num
    n = len(str(num))
    while copynum != 0:
        rem = copynum%10
        result += pow(rem,n)
        copynum //= 10
    #print("Value of result ",result)
    if result == num:
        return "Number {} is armstrong".format(num)
    else:
        return "Number {} is not armstrong".format(num)