class A:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: C = None
        self.w: F = None
        self.o: J = None
        self.s: C = None
        self.q: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: C = None
        self.r: D = None
        self.q: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.q: J = None
        self.w: D = None
        self.txt = txt

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

b = A("b")
k = B("k")
g = C("g")
a = D("a")
j = E("j")
e = F("e")
n = G("n")
l = H("l")
m = I("m")
i = J("i")

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

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: C = None
        self.r: D = None
        self.q: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.q: J = None
        self.w: D = None
        self.txt = txt

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

b = A("b")
k = B("k")
g = C("g")
a = D("a")
j = E("j")
e = F("e")
n = G("n")
l = H("l")
m = I("m")
i = J("i")

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