class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.q: A = None
        self.z: C = None
        self.t: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: F = None
        self.s: C = None
        self.v: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.q: A = None
        self.z: C = None
        self.t: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: F = None
        self.s: C = None
        self.v: H = None
        self.txt = txt

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

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

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