class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: H = None
        self.t: H = None
        self.v: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: G = None
        self.p: G = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: H = None
        self.q: D = None
        self.r: F = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: C = None
        self.u: C = None
        self.x: G = None
        self.y: E = None
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: G = None
        self.p: G = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: H = None
        self.q: D = None
        self.r: F = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: C = None
        self.u: C = None
        self.x: G = None
        self.y: E = None
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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

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