def mirror_number(k):
    def is_mirror_digit(digit):
        mirrored_digits = {'1':'1','6':'9','8':'8','9':'6'}
        return digit in mirrored_digits
    def mirror(k):
        mirrored_k=''
        for digit in str(k):
            mirrored_k =
            mirrored_digits.get(digit,'2')+
            mirrored_k
               return int(mirrored_k)
            mirrored_k=mirror(k)
            k = 5
            result = mirror_number(k)
            print(result)
