class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: J = None
        self.r: E = None
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: G = None
        self.t: J = None
        self.v: F = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: I = None
        self.x: E = None
        self.o: J = None
        self.w: D = None
        self.p: D = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: G = None
        self.s: E = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: J = None
        self.z: E = None
        self.y: F = None
        self.w: A = None
        self.o: E = None
        self.p: J = None
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: C = None
        self.s: G = None
        self.u: E = None
        self.y: E = None
        self.v: E = None
        self.t: I = None
        self.r: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: J = None
        self.r: E = None
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: G = None
        self.t: J = None
        self.v: F = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: I = None
        self.x: E = None
        self.o: J = None
        self.w: D = None
        self.p: D = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: G = None
        self.s: E = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: J = None
        self.z: E = None
        self.y: F = None
        self.w: A = None
        self.o: E = None
        self.p: J = None
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: C = None
        self.s: G = None
        self.u: E = None
        self.y: E = None
        self.v: E = None
        self.t: I = None
        self.r: D = None
        self.txt = txt

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

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