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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: E = None
        self.v: A = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: E = None
        self.o: E = None
        self.s: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: B = None
        self.v: B = None
        self.o: J = None
        self.s: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: J = None
        self.w: D = None
        self.t: A = None
        self.x: F = None
        self.u: I = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: E = None
        self.v: A = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: E = None
        self.o: E = None
        self.s: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: B = None
        self.v: B = None
        self.o: J = None
        self.s: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: J = None
        self.w: D = None
        self.t: A = None
        self.x: F = None
        self.u: I = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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