class A:
    def __init__(self, txt: str):
        self.w: J = None
        self.z: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: B = None
        self.v: G = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: G = None
        self.q: J = None
        self.x: G = None
        self.s: J = None
        self.r: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: B = None
        self.v: G = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: G = None
        self.q: J = None
        self.x: G = None
        self.s: J = None
        self.r: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

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

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

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