class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: C = None
        self.v: H = None
        self.s: I = None
        self.z: F = None
        self.y: E = None
        self.r: F = None
        self.p: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: J = None
        self.s: J = None
        self.w: G = None
        self.y: G = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: H = None
        self.s: C = None
        self.v: C = None
        self.p: H = None
        self.u: A = None
        self.o: I = None
        self.y: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: F = None
        self.o: G = None
        self.r: B = None
        self.txt = txt

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

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

b = A("b")
l = B("l")
f = C("f")
d = D("d")
c = E("c")
n = F("n")
h = G("h")
g = H("g")
k = I("k")
m = J("m")

b.x = c
b.y = c
b.p = c
b.w = f
b.v = g
b.s = k
b.z = n
b.r = n
l.u = d
l.r = d
l.p = c
l.z = h
l.o = g
l.y = f
l.s = m
f.o = h
f.w = h
f.y = h
f.z = m
f.s = m
f.x = d
d.q = f
d.s = f
d.v = f
d.t = g
d.p = g
d.y = g
d.u = b
d.o = k
c.t = g
n.q = m
n.r = m
n.u = l
n.s = b
n.o = k
n.v = k
n.z = d
n.y = h
n.w = f
h.q = l
h.o = l
h.w = n
g.x = d
g.t = n
g.o = h
g.r = l
k.p = b
k.o = m
m.u = f
m.q = f
m.y = b
m.r = d
m.o = d
m.v = h
m.s = h
m.x = k
m.t = c
m.z = c
assert d.y.r.z.o.z.w.y.q.txt == "
class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: C = None
        self.v: H = None
        self.s: I = None
        self.z: F = None
        self.y: E = None
        self.r: F = None
        self.p: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: J = None
        self.s: J = None
        self.w: G = None
        self.y: G = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: H = None
        self.s: C = None
        self.v: C = None
        self.p: H = None
        self.u: A = None
        self.o: I = None
        self.y: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: F = None
        self.o: G = None
        self.r: B = None
        self.txt = txt

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

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

b = A("b")
l = B("l")
f = C("f")
d = D("d")
c = E("c")
n = F("n")
h = G("h")
g = H("g")
k = I("k")
m = J("m")

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