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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: A = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: I = None
        self.o: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: J = None
        self.t: E = None
        self.v: J = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: C = None
        self.p: E = None
        self.t: F = None
        self.r: A = None
        self.o: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: A = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: I = None
        self.o: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: J = None
        self.t: E = None
        self.v: J = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: C = None
        self.p: E = None
        self.t: F = None
        self.r: A = None
        self.o: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: H = None
        self.txt = txt

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

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