class A:
    def __init__(self, txt: str):
        self.p: J = None
        self.s: G = None
        self.q: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: I = None
        self.t: D = None
        self.s: E = None
        self.v: F = None
        self.o: J = None
        self.w: B = None
        self.x: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: A = None
        self.x: E = None
        self.o: H = None
        self.s: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: I = None
        self.s: J = None
        self.v: B = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: J = None
        self.r: G = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: B = None
        self.o: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: I = None
        self.t: D = None
        self.s: E = None
        self.v: F = None
        self.o: J = None
        self.w: B = None
        self.x: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: A = None
        self.x: E = None
        self.o: H = None
        self.s: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: I = None
        self.s: J = None
        self.v: B = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: J = None
        self.r: G = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: B = None
        self.o: I = None
        self.txt = txt

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

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