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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: E = None
        self.y: J = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: G = None
        self.s: I = None
        self.u: J = None
        self.t: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: J = None
        self.p: J = None
        self.s: B = None
        self.y: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: E = None
        self.y: J = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: G = None
        self.s: I = None
        self.u: J = None
        self.t: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: J = None
        self.p: J = None
        self.s: B = None
        self.y: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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