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

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: F = None
        self.r: H = None
        self.z: A = None
        self.o: C = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.p: E = None
        self.w: B = None
        self.v: A = None
        self.q: C = None
        self.r: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

h = A("h")
a = B("a")
e = C("e")
c = D("c")
m = E("m")
j = F("j")
l = G("l")
g = H("g")
n = I("n")
b = E("b")

h.v = a
h.u = e
a.z = h
a.u = l
a.w = e
e.q = c
e.x = j
e.u = j
e.o = j
e.s = j
e.z = g
e.v = g
e.y = b
c.z = g
c.r = a
m.v = j
m.t = j
m.r = g
m.z = h
m.o = e
m.y = n
j.t = n
j.p = m
j.w = a
j.v = h
j.r = h
j.q = e
l.t = m
g.r = c
g.q = j
g.v = e
g.t = n
n.x = c
n.q = c
b.v = j
b.t = j
b.r = g
b.z = h
b.o = e
b.y = n
assert j.w.u.t.o.q.txt == "
class A:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: F = None
        self.r: H = None
        self.z: A = None
        self.o: C = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.p: E = None
        self.w: B = None
        self.v: A = None
        self.q: C = None
        self.r: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

h = A("h")
a = B("a")
e = C("e")
c = D("c")
m = E("m")
j = F("j")
l = G("l")
g = H("g")
n = I("n")
b = E("b")

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