class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: J = None
        self.w: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: G = None
        self.z: A = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: H = None
        self.r: D = None
        self.o: E = None
        self.p: J = None
        self.z: D = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.s: H = None
        self.z: H = None
        self.q: G = None
        self.y: B = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: J = None
        self.w: A = None
        self.u: J = None
        self.p: A = None
        self.r: B = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.u: J = None
        self.r: C = None
        self.v: G = None
        self.w: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: G = None
        self.z: A = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: H = None
        self.r: D = None
        self.o: E = None
        self.p: J = None
        self.z: D = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.s: H = None
        self.z: H = None
        self.q: G = None
        self.y: B = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: J = None
        self.w: A = None
        self.u: J = None
        self.p: A = None
        self.r: B = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.u: J = None
        self.r: C = None
        self.v: G = None
        self.w: G = None
        self.txt = txt

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

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

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