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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: D = None
        self.y: G = None
        self.s: B = None
        self.p: B = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: A = None
        self.v: I = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: C = None
        self.x: H = None
        self.q: C = None
        self.y: D = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: A = None
        self.s: H = None
        self.x: I = None
        self.r: C = None
        self.z: H = None
        self.w: A = None
        self.p: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: A = None
        self.q: F = None
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: H = None
        self.q: H = None
        self.w: G = None
        self.s: G = None
        self.t: H = None
        self.r: F = None
        self.u: G = None
        self.y: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: D = None
        self.y: G = None
        self.s: B = None
        self.p: B = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: A = None
        self.v: I = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: C = None
        self.x: H = None
        self.q: C = None
        self.y: D = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: A = None
        self.s: H = None
        self.x: I = None
        self.r: C = None
        self.z: H = None
        self.w: A = None
        self.p: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: A = None
        self.q: F = None
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: H = None
        self.q: H = None
        self.w: G = None
        self.s: G = None
        self.t: H = None
        self.r: F = None
        self.u: G = None
        self.y: E = None
        self.txt = txt

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

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