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

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

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: I = None
        self.y: J = None
        self.v: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: D = None
        self.x: H = None
        self.y: C = None
        self.z: H = None
        self.u: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: E = None
        self.y: E = None
        self.z: H = None
        self.txt = txt

l = A("l")
e = B("e")
j = C("j")
k = D("k")
a = E("a")
m = F("m")
g = G("g")
i = H("i")
d = I("d")
c = J("c")

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: I = None
        self.y: J = None
        self.v: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: D = None
        self.x: H = None
        self.y: C = None
        self.z: H = None
        self.u: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: E = None
        self.y: E = None
        self.z: H = None
        self.txt = txt

l = A("l")
e = B("e")
j = C("j")
k = D("k")
a = E("a")
m = F("m")
g = G("g")
i = H("i")
d = I("d")
c = J("c")

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