class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: D = None
        self.u: H = None
        self.y: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: J = None
        self.z: F = None
        self.p: I = None
        self.r: G = None
        self.u: H = None
        self.s: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: J = None
        self.t: H = None
        self.z: B = None
        self.q: C = None
        self.u: D = None
        self.s: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: J = None
        self.s: J = None
        self.w: G = None
        self.r: C = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: H = None
        self.v: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: B = None
        self.z: C = None
        self.q: E = None
        self.y: C = None
        self.s: E = None
        self.p: A = None
        self.v: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: J = None
        self.z: F = None
        self.p: I = None
        self.r: G = None
        self.u: H = None
        self.s: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: J = None
        self.t: H = None
        self.z: B = None
        self.q: C = None
        self.u: D = None
        self.s: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: J = None
        self.s: J = None
        self.w: G = None
        self.r: C = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: H = None
        self.v: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: B = None
        self.z: C = None
        self.q: E = None
        self.y: C = None
        self.s: E = None
        self.p: A = None
        self.v: B = None
        self.txt = txt

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

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