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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: I = None
        self.p: J = None
        self.s: C = None
        self.x: A = None
        self.w: B = None
        self.r: H = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: H = None
        self.q: G = None
        self.u: C = None
        self.o: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: A = None
        self.z: F = None
        self.x: A = None
        self.s: C = None
        self.t: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: B = None
        self.p: A = None
        self.o: A = None
        self.y: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: I = None
        self.p: J = None
        self.s: C = None
        self.x: A = None
        self.w: B = None
        self.r: H = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: H = None
        self.q: G = None
        self.u: C = None
        self.o: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: A = None
        self.z: F = None
        self.x: A = None
        self.s: C = None
        self.t: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: B = None
        self.p: A = None
        self.o: A = None
        self.y: G = None
        self.txt = txt

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

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