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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: H = None
        self.y: E = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: G = None
        self.p: I = None
        self.o: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: H = None
        self.u: H = None
        self.s: A = None
        self.r: H = None
        self.x: F = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: E = None
        self.p: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: B = None
        self.o: I = None
        self.u: F = None
        self.z: F = None
        self.txt = txt

f = A("f")
e = B("e")
l = C("l")
n = D("n")
k = E("k")
b = F("b")
a = G("a")
j = H("j")
c = I("c")
d = J("d")

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: H = None
        self.y: E = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: G = None
        self.p: I = None
        self.o: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: H = None
        self.u: H = None
        self.s: A = None
        self.r: H = None
        self.x: F = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: E = None
        self.p: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: B = None
        self.o: I = None
        self.u: F = None
        self.z: F = None
        self.txt = txt

f = A("f")
e = B("e")
l = C("l")
n = D("n")
k = E("k")
b = F("b")
a = G("a")
j = H("j")
c = I("c")
d = J("d")

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