class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: C = None
        self.t: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: B = None
        self.u: B = None
        self.p: B = None
        self.x: F = None
        self.o: G = None
        self.s: B = None
        self.q: I = None
        self.w: B = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: G = None
        self.o: D = None
        self.z: E = None
        self.r: G = None
        self.x: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: C = None
        self.w: G = None
        self.p: C = None
        self.z: H = None
        self.y: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: B = None
        self.u: B = None
        self.p: B = None
        self.x: F = None
        self.o: G = None
        self.s: B = None
        self.q: I = None
        self.w: B = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: G = None
        self.o: D = None
        self.z: E = None
        self.r: G = None
        self.x: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: C = None
        self.w: G = None
        self.p: C = None
        self.z: H = None
        self.y: E = None
        self.txt = txt

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

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

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