|
next(_for y in [__import__('sys')] for _ in [y.setrecursionlimit(10000)] for m in [__import__('msvcrt')] for p in [lambda *s:[y.stdout.write(str(_)) for _ in s]] for h in [lambda s,i:next(_ for _ in [s.m.pop(str(s.k)),s.m.setdefault(str(s.k),i)])] for j in [lambda s,i:next(_ for o in [s.m[str(s.k)]+i] for _ in [h(s,o)])] for e in [lambda s,i:next(_ for _ in [s.n[str(s.l)].pop('p'),s.n[str(s.l)].setdefault('p',i)])] for t in [lambda s,a,v:setattr(s,a,v)] for z in [lambda s,a,v:t(s,a,getattr(s,a)+v)] for w in [lambda:next(_ for _ in [p('ERROR!'),y.exit(1)])] for b in [open(y.argv[1],"r") if len(y.argv)>1 else w()] for _ in [type('',(),{'__init__':lambda s:next(_for _ in [t(s,'c',"".join(["".join(c) for c in b.readlines()])),b.close(),t(s,'e',1),t(s,'i',len(s.c)),t(s,'p',0),t(s,'k',0),t(s,'m',{str(i):0 for i in range(5000)}),t(s,'d',1),t(s,'l',0),t(s,'n',{str(i):{'p':0} for i in range(5000)}),s._()]),'_':lambda s:next(_for c in [s.c[s.p]]for _ in [[h(s,ord(m.getch())),z(s,'p',1),t(s,'d',0)] if c==',' else None,[ |