class A:
    def __init__(self, txt: str):
        self.w: J = None
        self.r: C = None
        self.o: B = None
        self.y: C = None
        self.u: G = None
        self.q: C = None
        self.s: F = None
        self.t: F = None
        self.z: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: J = None
        self.w: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: J = None
        self.s: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: J = None
        self.w: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: J = None
        self.s: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

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

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

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