class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: J = None
        self.t: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: F = None
        self.r: H = None
        self.v: D = None
        self.w: E = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: A = None
        self.v: C = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: F = None
        self.v: G = None
        self.q: D = None
        self.p: A = None
        self.y: C = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: C = None
        self.v: C = None
        self.p: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: F = None
        self.r: H = None
        self.v: D = None
        self.w: E = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: A = None
        self.v: C = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: F = None
        self.v: G = None
        self.q: D = None
        self.p: A = None
        self.y: C = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: C = None
        self.v: C = None
        self.p: F = None
        self.txt = txt

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

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