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

class B:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: E = None
        self.o: C = None
        self.x: I = None
        self.q: G = None
        self.t: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: J = None
        self.p: F = None
        self.t: J = None
        self.z: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.u: H = None
        self.y: C = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: F = None
        self.q: H = None
        self.v: C = None
        self.o: B = None
        self.p: A = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: E = None
        self.o: C = None
        self.x: I = None
        self.q: G = None
        self.t: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: J = None
        self.p: F = None
        self.t: J = None
        self.z: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.u: H = None
        self.y: C = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: F = None
        self.q: H = None
        self.v: C = None
        self.o: B = None
        self.p: A = None
        self.txt = txt

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

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

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

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

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