class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: D = None
        self.z: I = None
        self.v: G = None
        self.u: I = None
        self.w: C = None
        self.q: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: F = None
        self.t: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: C = None
        self.q: E = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.u: J = None
        self.y: H = None
        self.z: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: J = None
        self.txt = txt

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

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

a = A("a")
g = B("g")
e = C("e")
f = D("f")
l = E("l")
b = F("b")
k = G("k")
m = H("m")
h = I("h")
d = J("d")

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: F = None
        self.t: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: C = None
        self.q: E = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.u: J = None
        self.y: H = None
        self.z: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: J = None
        self.txt = txt

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

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

a = A("a")
g = B("g")
e = C("e")
f = D("f")
l = E("l")
b = F("b")
k = G("k")
m = H("m")
h = I("h")
d = J("d")

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