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

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: B = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: C = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: G = None
        self.v: J = None
        self.x: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: B = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: C = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: G = None
        self.v: J = None
        self.x: C = None
        self.txt = txt

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

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

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