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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: A = None
        self.o: F = None
        self.p: G = None
        self.r: C = None
        self.q: D = None
        self.t: D = None
        self.z: H = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: G = None
        self.w: G = None
        self.t: D = None
        self.v: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: A = None
        self.o: F = None
        self.p: G = None
        self.r: C = None
        self.q: D = None
        self.t: D = None
        self.z: H = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: G = None
        self.w: G = None
        self.t: D = None
        self.v: A = None
        self.txt = txt

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

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