def f(n):
    str_n = str(n)
    length = len(str_n)
    reversed_n = int(str_n[::-1])
    return length, reversed_n


if __name__ == '__main__':
    c = input('请输入不多与五位的数字：')
    a, b = f(c)
    print('它是%s位数，逆序为%s' % (a, b))
