class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: G = None
        self.s: H = None
        self.y: C = None
        self.o: F = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: A = None
        self.p: D = None
        self.t: B = None
        self.v: D = None
        self.y: I = None
        self.o: I = None
        self.u: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: F = None
        self.v: I = None
        self.q: E = None
        self.y: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: H = None
        self.r: E = None
        self.v: E = None
        self.y: F = None
        self.s: D = None
        self.w: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: A = None
        self.p: D = None
        self.t: B = None
        self.v: D = None
        self.y: I = None
        self.o: I = None
        self.u: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: F = None
        self.v: I = None
        self.q: E = None
        self.y: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: H = None
        self.r: E = None
        self.v: E = None
        self.y: F = None
        self.s: D = None
        self.w: G = None
        self.txt = txt

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

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