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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.w: G = None
        self.u: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: E = None
        self.y: C = None
        self.p: A = None
        self.s: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: E = None
        self.w: A = None
        self.s: F = None
        self.r: A = None
        self.q: D = None
        self.t: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: D = None
        self.u: E = None
        self.z: D = None
        self.q: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.w: G = None
        self.u: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: E = None
        self.y: C = None
        self.p: A = None
        self.s: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: E = None
        self.w: A = None
        self.s: F = None
        self.r: A = None
        self.q: D = None
        self.t: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: D = None
        self.u: E = None
        self.z: D = None
        self.q: G = None
        self.txt = txt

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

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