class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.p: B = None
        self.s: B = None
        self.v: B = None
        self.t: H = None
        self.w: B = None
        self.x: E = None
        self.z: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: G = None
        self.o: H = None
        self.s: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: G = None
        self.t: B = None
        self.o: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: I = None
        self.q: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: D = None
        self.q: B = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: C = None
        self.u: D = None
        self.y: E = None
        self.t: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: G = None
        self.o: H = None
        self.s: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: G = None
        self.t: B = None
        self.o: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: I = None
        self.q: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: D = None
        self.q: B = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: C = None
        self.u: D = None
        self.y: E = None
        self.t: H = None
        self.txt = txt

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

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