class A:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: I = None
        self.u: J = None
        self.y: I = None
        self.w: H = None
        self.s: E = None
        self.p: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.o: A = None
        self.r: A = None
        self.y: B = None
        self.w: B = None
        self.v: A = None
        self.x: I = None
        self.z: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: C = None
        self.p: F = None
        self.o: A = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: H = None
        self.s: J = None
        self.z: J = None
        self.r: A = None
        self.y: G = None
        self.p: I = None
        self.w: B = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: J = None
        self.r: D = None
        self.s: H = None
        self.z: I = None
        self.x: H = None
        self.t: J = None
        self.q: E = None
        self.y: B = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: E = None
        self.p: G = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: G = None
        self.p: A = None
        self.u: A = None
        self.r: H = None
        self.t: I = None
        self.txt = txt

i = A("i")
l = B("l")
e = C("e")
d = D("d")
m = E("m")
n = F("n")
c = G("c")
b = H("b")
j = I("j")
g = J("g")

i.r = j
i.t = j
i.y = j
i.u = g
i.w = b
i.s = m
i.p = d
l.t = b
l.z = b
e.s = g
e.o = i
e.r = i
e.v = i
e.y = l
e.w = l
e.x = j
e.z = c
d.x = i
d.o = i
d.t = e
d.p = n
d.z = j
m.o = i
n.q = b
n.x = b
n.s = g
n.z = g
n.r = i
n.y = c
n.p = j
n.w = l
n.u = e
c.p = n
c.u = g
c.t = g
c.r = d
c.s = b
c.x = b
c.z = j
c.q = m
c.v = m
c.y = l
b.u = m
b.q = m
b.p = c
b.w = j
j.w = e
g.v = l
g.y = c
g.p = i
g.u = i
g.r = b
g.t = j
assert e.o.s.o.p.z.w.txt == "
class A:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: I = None
        self.u: J = None
        self.y: I = None
        self.w: H = None
        self.s: E = None
        self.p: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.o: A = None
        self.r: A = None
        self.y: B = None
        self.w: B = None
        self.v: A = None
        self.x: I = None
        self.z: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: C = None
        self.p: F = None
        self.o: A = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: H = None
        self.s: J = None
        self.z: J = None
        self.r: A = None
        self.y: G = None
        self.p: I = None
        self.w: B = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: J = None
        self.r: D = None
        self.s: H = None
        self.z: I = None
        self.x: H = None
        self.t: J = None
        self.q: E = None
        self.y: B = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: E = None
        self.p: G = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: G = None
        self.p: A = None
        self.u: A = None
        self.r: H = None
        self.t: I = None
        self.txt = txt

i = A("i")
l = B("l")
e = C("e")
d = D("d")
m = E("m")
n = F("n")
c = G("c")
b = H("b")
j = I("j")
g = J("g")

i.r = j
i.t = j
i.y = j
i.u = g
i.w = b
i.s = m
i.p = d
l.t = b
l.z = b
e.s = g
e.o = i
e.r = i
e.v = i
e.y = l
e.w = l
e.x = j
e.z = c
d.x = i
d.o = i
d.t = e
d.p = n
d.z = j
m.o = i
n.q = b
n.x = b
n.s = g
n.z = g
n.r = i
n.y = c
n.p = j
n.w = l
n.u = e
c.p = n
c.u = g
c.t = g
c.r = d
c.s = b
c.x = b
c.z = j
c.q = m
c.v = m
c.y = l
b.u = m
b.q = m
b.p = c
b.w = j
j.w = e
g.v = l
g.y = c
g.p = i
g.u = i
g.r = b
g.t = j
assert e.o.s.o.p.z.w.txt == "e"