class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: D = None
        self.o: I = None
        self.t: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: I = None
        self.p: F = None
        self.q: E = None
        self.v: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: I = None
        self.q: F = None
        self.o: I = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: A = None
        self.t: I = None
        self.w: B = None
        self.y: B = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: E = None
        self.u: B = None
        self.s: F = None
        self.p: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: I = None
        self.p: F = None
        self.q: E = None
        self.v: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: I = None
        self.q: F = None
        self.o: I = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: A = None
        self.t: I = None
        self.w: B = None
        self.y: B = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: E = None
        self.u: B = None
        self.s: F = None
        self.p: F = None
        self.txt = txt

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

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