class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: F = None
        self.p: J = None
        self.q: B = None
        self.y: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: A = None
        self.q: J = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: J = None
        self.y: G = None
        self.u: J = None
        self.q: D = None
        self.s: A = None
        self.x: D = None
        self.p: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: F = None
        self.r: F = None
        self.z: A = None
        self.s: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: E = None
        self.x: D = None
        self.p: F = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: A = None
        self.x: E = None
        self.o: A = None
        self.w: G = None
        self.q: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: A = None
        self.q: J = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: J = None
        self.y: G = None
        self.u: J = None
        self.q: D = None
        self.s: A = None
        self.x: D = None
        self.p: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: F = None
        self.r: F = None
        self.z: A = None
        self.s: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: E = None
        self.x: D = None
        self.p: F = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: A = None
        self.x: E = None
        self.o: A = None
        self.w: G = None
        self.q: D = None
        self.txt = txt

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

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