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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: E = None
        self.q: D = None
        self.u: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: B = None
        self.p: G = None
        self.x: A = None
        self.t: A = None
        self.u: A = None
        self.txt = txt

n = A("n")
e = B("e")
m = C("m")
l = D("l")
g = E("g")
a = F("a")
b = G("b")
i = H("i")
j = I("j")
k = H("k")

n.o = e
n.q = l
n.s = g
e.p = n
e.y = a
e.u = a
e.t = m
e.r = k
e.s = i
e.q = i
e.x = b
m.r = n
m.z = g
m.q = l
m.u = i
l.r = g
l.w = g
l.p = g
l.s = b
l.t = a
l.o = e
l.z = j
l.q = m
g.r = e
g.o = a
a.y = i
a.t = b
b.r = g
b.x = n
b.w = k
b.u = a
i.s = g
i.r = b
i.q = b
i.z = e
i.t = l
i.o = a
i.w = n
j.w = m
j.z = e
j.p = b
j.x = n
j.t = n
j.u = n
k.s = g
k.r = b
k.q = b
k.z = e
k.t = l
k.o = a
k.w = n
assert n.s.o.t.u.t.txt == "
class A:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: D = None
        self.s: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: E = None
        self.q: D = None
        self.u: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: B = None
        self.p: G = None
        self.x: A = None
        self.t: A = None
        self.u: A = None
        self.txt = txt

n = A("n")
e = B("e")
m = C("m")
l = D("l")
g = E("g")
a = F("a")
b = G("b")
i = H("i")
j = I("j")
k = H("k")

n.o = e
n.q = l
n.s = g
e.p = n
e.y = a
e.u = a
e.t = m
e.r = k
e.s = i
e.q = i
e.x = b
m.r = n
m.z = g
m.q = l
m.u = i
l.r = g
l.w = g
l.p = g
l.s = b
l.t = a
l.o = e
l.z = j
l.q = m
g.r = e
g.o = a
a.y = i
a.t = b
b.r = g
b.x = n
b.w = k
b.u = a
i.s = g
i.r = b
i.q = b
i.z = e
i.t = l
i.o = a
i.w = n
j.w = m
j.z = e
j.p = b
j.x = n
j.t = n
j.u = n
k.s = g
k.r = b
k.q = b
k.z = e
k.t = l
k.o = a
k.w = n
assert n.s.o.t.u.t.txt == "b"