import sys


def main():
    fw = open(sys.argv[2], 'w')
    fr = open(sys.argv[1], 'r')
    for line in fr:
        flag = 0
        for char in line:
            if flag == 0:
                decryption_line = char
                flag = 1
                first_char = ord(char) % 10
            else:
                decryption_line = decryption_line + chr(ord(char) + first_char)
                first_char = ord(chr(ord(char) + first_char)) % 10
        fw.write(decryption_line)
        fw.flush()
    fw.close()


if __name__ == '__main__':
    main()

2ef8eea2e4cafbf5af2ca5efdbc79a5dd65e8a99
<mask token>

<mask token>


def main():
    fw = open(sys.argv[2], 'w')
    fr = open(sys.argv[1], 'r')
    for line in fr:
        flag = 0
        for char in line:
            if flag == 0:
                decryption_line = char
                flag = 1
                first_char = ord(char) % 10
            else:
                decryption_line = decryption_line + chr(ord(char) + first_char)
                first_char = ord(chr(ord(char) + first_char)) % 10
        fw.write(decryption_line)
        fw.flush()
    fw.close()


<mask token>

<mask token>


def main():
    fw = open(sys.argv[2], 'w')
    fr = open(sys.argv[1], 'r')
    for line in fr:
        flag = 0
        for char in line:
            if flag == 0:
                decryption_line = char
                flag = 1
                first_char = ord(char) % 10
            else:
                decryption_line = decryption_line + chr(ord(char) + first_char)
                first_char = ord(chr(ord(char) + first_char)) % 10
        fw.write(decryption_line)
        fw.flush()
    fw.close()


if __name__ == '__main__':
    main()

import sys


def main():
    fw = open(sys.argv[2], 'w')
    fr = open(sys.argv[1], 'r')
    for line in fr:
        flag = 0
        for char in line:
            if flag == 0:
                decryption_line = char
                flag = 1
                first_char = ord(char) % 10
            else:
                decryption_line = decryption_line + chr(ord(char) + first_char)
                first_char = ord(chr(ord(char) + first_char)) % 10
        fw.write(decryption_line)
        fw.flush()
    fw.close()


if __name__ == '__main__':
    main()
