class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: G = None
        self.r: C = None
        self.y: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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

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