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

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: J = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: A = None
        self.x: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: D = None
        self.x: E = None
        self.z: A = None
        self.w: F = None
        self.r: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.v: G = None
        self.r: E = None
        self.u: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: C = None
        self.v: G = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: J = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: A = None
        self.x: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: D = None
        self.x: E = None
        self.z: A = None
        self.w: F = None
        self.r: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.v: G = None
        self.r: E = None
        self.u: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: C = None
        self.v: G = None
        self.txt = txt

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

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