class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: C = None
        self.o: B = None
        self.r: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: D = None
        self.t: A = None
        self.u: D = None
        self.y: C = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: E = None
        self.v: A = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.u: F = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: B = None
        self.u: B = None
        self.x: D = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: B = None
        self.s: H = None
        self.w: A = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: C = None
        self.s: B = None
        self.r: B = None
        self.txt = txt

d = A("d")
k = B("k")
e = C("e")
a = D("a")
c = E("c")
g = F("g")
h = G("h")
i = H("i")

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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: D = None
        self.t: A = None
        self.u: D = None
        self.y: C = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: E = None
        self.v: A = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.u: F = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: B = None
        self.u: B = None
        self.x: D = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: B = None
        self.s: H = None
        self.w: A = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: C = None
        self.s: B = None
        self.r: B = None
        self.txt = txt

d = A("d")
k = B("k")
e = C("e")
a = D("a")
c = E("c")
g = F("g")
h = G("h")
i = H("i")

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