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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: F = None
        self.o: E = None
        self.w: C = None
        self.q: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: D = None
        self.r: H = None
        self.p: E = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: C = None
        self.o: C = None
        self.w: H = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: B = None
        self.t: C = None
        self.q: F = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: C = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.x: E = None
        self.v: B = None
        self.u: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: F = None
        self.o: E = None
        self.w: C = None
        self.q: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: D = None
        self.r: H = None
        self.p: E = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: C = None
        self.o: C = None
        self.w: H = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: B = None
        self.t: C = None
        self.q: F = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: C = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.x: E = None
        self.v: B = None
        self.u: B = None
        self.txt = txt

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

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

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