def cool():
d = {'x':0}
def lal():
d.update({'x':d['x']+1})
return d['x']
return lal
class Cl():
n = 0
def lol():
Cl.n+=1
return Cl.n
lol = staticmethod(lol)
if __name__=='__main__':
q = cool()
w = Cl()
print(w.lol())
print(q())
ZGVmIGNvb2woKToKICAgIGQgPSB7J3gnOjB9CiAgICBkZWYgbGFsKCk6CiAgICAgICAgZC51cGRhdGUoeyd4JzpkWyd4J10rMX0pCiAgICAgICAgcmV0dXJuIGRbJ3gnXQogICAgcmV0dXJuIGxhbAoKY2xhc3MgQ2woKToKICAgIG4gPSAwCiAgICBkZWYgbG9sKCk6CiAgICAgICAgQ2wubis9MQogICAgICAgIHJldHVybiBDbC5uCiAgICBsb2wgPSBzdGF0aWNtZXRob2QobG9sKQogICAgICAgICAgICAgICAgCmlmIF9fbmFtZV9fPT0nX19tYWluX18nOgogICAgcSA9IGNvb2woKQogICAgdyA9IENsKCkKICAgIHByaW50KHcubG9sKCkpCiAgICBwcmludChxKCkp