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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: A = None
        self.v: H = None
        self.w: E = None
        self.u: G = None
        self.q: F = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: F = None
        self.p: G = None
        self.t: E = None
        self.u: B = None
        self.q: E = None
        self.r: B = None
        self.x: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: H = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: E = None
        self.v: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

m = A("m")
b = B("b")
l = C("l")
d = D("d")
j = E("j")
e = F("e")
a = G("a")
i = H("i")
h = I("h")

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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: A = None
        self.v: H = None
        self.w: E = None
        self.u: G = None
        self.q: F = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: F = None
        self.p: G = None
        self.t: E = None
        self.u: B = None
        self.q: E = None
        self.r: B = None
        self.x: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: H = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: E = None
        self.v: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

m = A("m")
b = B("b")
l = C("l")
d = D("d")
j = E("j")
e = F("e")
a = G("a")
i = H("i")
h = I("h")

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