class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.w: G = None
        self.t: J = None
        self.q: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: E = None
        self.o: A = None
        self.x: F = None
        self.t: F = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: J = None
        self.r: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: A = None
        self.q: H = None
        self.o: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: E = None
        self.o: A = None
        self.x: F = None
        self.t: F = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: J = None
        self.r: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: A = None
        self.q: H = None
        self.o: D = None
        self.txt = txt

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

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