class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: I = None
        self.p: H = None
        self.o: I = None
        self.w: C = None
        self.v: D = None
        self.x: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.x: E = None
        self.y: J = None
        self.u: I = None
        self.z: C = None
        self.o: C = None
        self.q: G = None
        self.p: C = None
        self.t: G = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.s: J = None
        self.x: H = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: A = None
        self.v: B = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: H = None
        self.u: J = None
        self.s: H = None
        self.t: H = None
        self.o: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: A = None
        self.r: A = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: C = None
        self.u: B = None
        self.w: D = None
        self.p: F = None
        self.t: E = None
        self.x: D = None
        self.txt = txt

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

i = A("i")
g = B("g")
d = C("d")
a = D("a")
b = E("b")
f = F("f")
m = G("m")
h = H("h")
e = I("e")
l = J("l")

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

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.x: E = None
        self.y: J = None
        self.u: I = None
        self.z: C = None
        self.o: C = None
        self.q: G = None
        self.p: C = None
        self.t: G = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.s: J = None
        self.x: H = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: A = None
        self.v: B = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: H = None
        self.u: J = None
        self.s: H = None
        self.t: H = None
        self.o: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: A = None
        self.r: A = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: C = None
        self.u: B = None
        self.w: D = None
        self.p: F = None
        self.t: E = None
        self.x: D = None
        self.txt = txt

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

i = A("i")
g = B("g")
d = C("d")
a = D("a")
b = E("b")
f = F("f")
m = G("m")
h = H("h")
e = I("e")
l = J("l")

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