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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: J = None
        self.y: H = None
        self.t: C = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: J = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: A = None
        self.z: J = None
        self.v: F = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: G = None
        self.x: E = None
        self.u: A = None
        self.y: J = None
        self.q: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: D = None
        self.z: E = None
        self.r: F = None
        self.x: F = None
        self.y: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: G = None
        self.z: D = None
        self.w: E = None
        self.o: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: J = None
        self.y: H = None
        self.t: C = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: J = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: A = None
        self.z: J = None
        self.v: F = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: G = None
        self.x: E = None
        self.u: A = None
        self.y: J = None
        self.q: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: D = None
        self.z: E = None
        self.r: F = None
        self.x: F = None
        self.y: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: G = None
        self.z: D = None
        self.w: E = None
        self.o: A = None
        self.txt = txt

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

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