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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: F = None
        self.q: G = None
        self.z: A = None
        self.r: E = None
        self.u: G = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.t: F = None
        self.z: D = None
        self.v: D = None
        self.s: D = None
        self.q: D = None
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: G = None
        self.v: D = None
        self.u: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: G = None
        self.u: I = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: F = None
        self.q: G = None
        self.z: A = None
        self.r: E = None
        self.u: G = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.t: F = None
        self.z: D = None
        self.v: D = None
        self.s: D = None
        self.q: D = None
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: G = None
        self.v: D = None
        self.u: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: G = None
        self.u: I = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: D = None
        self.txt = txt

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

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