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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: A = None
        self.t: J = None
        self.q: D = None
        self.p: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: A = None
        self.z: I = None
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.p: I = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: C = None
        self.r: D = None
        self.w: D = None
        self.y: F = None
        self.q: E = None
        self.o: F = None
        self.z: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: A = None
        self.t: J = None
        self.q: D = None
        self.p: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: A = None
        self.z: I = None
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.p: I = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: C = None
        self.r: D = None
        self.w: D = None
        self.y: F = None
        self.q: E = None
        self.o: F = None
        self.z: C = None
        self.txt = txt

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

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

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

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