def init_encoding(self):
    try:
        self.stdin_encoding = (sys.stdin.encoding or 'ascii')
    except AttributeError:
        self.stdin_encoding = 'ascii'
def init_encoding(self):
    try:
        self.stdin_encoding = (sys.stdin.encoding or 'ascii')
    except AttributeError:
        self.stdin_encoding = 'ascii'