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

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

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: H = None
        self.z: I = None
        self.u: A = None
        self.o: H = None
        self.w: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: B = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: H = None
        self.z: I = None
        self.u: A = None
        self.o: H = None
        self.w: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: B = None
        self.txt = txt

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

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

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

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