class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: G = None
        self.o: C = None
        self.y: H = None
        self.w: C = None
        self.v: C = None
        self.z: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: C = None
        self.y: I = None
        self.v: J = None
        self.u: A = None
        self.w: I = None
        self.z: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.z: J = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: J = None
        self.u: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: F = None
        self.o: B = None
        self.y: A = None
        self.t: I = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: C = None
        self.y: I = None
        self.v: J = None
        self.u: A = None
        self.w: I = None
        self.z: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.z: J = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: J = None
        self.u: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: F = None
        self.o: B = None
        self.y: A = None
        self.t: I = None
        self.txt = txt

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

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