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

class B:
    def __init__(self, txt: str):
        self.x: B = 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.x: B = None
        self.o: C = None
        self.r: E = None
        self.v: G = None
        self.s: B = None
        self.q: A = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: D = None
        self.t: B = None
        self.x: B = None
        self.v: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: H = None
        self.y: A = None
        self.u: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: B = 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.x: B = None
        self.o: C = None
        self.r: E = None
        self.v: G = None
        self.s: B = None
        self.q: A = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: D = None
        self.t: B = None
        self.x: B = None
        self.v: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: H = None
        self.y: A = None
        self.u: D = None
        self.txt = txt

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

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

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