class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: B = None
        self.y: G = None
        self.s: B = None
        self.u: I = None
        self.z: I = None
        self.p: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: G = None
        self.q: A = None
        self.t: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.y: F = None
        self.t: I = None
        self.o: F = None
        self.s: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: D = None
        self.o: D = None
        self.t: G = None
        self.p: B = None
        self.z: E = None
        self.u: A = None
        self.txt = txt

d = A("d")
j = B("j")
e = C("e")
g = D("g")
a = E("a")
l = F("l")
c = G("c")
f = H("f")
b = I("b")

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: G = None
        self.q: A = None
        self.t: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.y: F = None
        self.t: I = None
        self.o: F = None
        self.s: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: D = None
        self.o: D = None
        self.t: G = None
        self.p: B = None
        self.z: E = None
        self.u: A = None
        self.txt = txt

d = A("d")
j = B("j")
e = C("e")
g = D("g")
a = E("a")
l = F("l")
c = G("c")
f = H("f")
b = I("b")

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