class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: D = None
        self.w: D = None
        self.p: I = None
        self.u: D = None
        self.x: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: A = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: B = None
        self.s: E = None
        self.y: J = None
        self.p: E = None
        self.u: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: G = None
        self.x: B = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: A = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: B = None
        self.s: E = None
        self.y: J = None
        self.p: E = None
        self.u: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: G = None
        self.x: B = None
        self.txt = txt

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

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

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