class A:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: B = None
        self.u: H = None
        self.z: B = None
        self.y: B = None
        self.x: B = None
        self.q: B = None
        self.p: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: I = None
        self.y: I = None
        self.p: I = None
        self.u: E = None
        self.z: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: D = None
        self.u: F = None
        self.v: G = None
        self.o: D = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: A = None
        self.q: E = None
        self.u: B = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: F = None
        self.y: A = None
        self.t: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: D = None
        self.z: H = None
        self.w: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: I = None
        self.y: I = None
        self.p: I = None
        self.u: E = None
        self.z: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: D = None
        self.u: F = None
        self.v: G = None
        self.o: D = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: A = None
        self.q: E = None
        self.u: B = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: F = None
        self.y: A = None
        self.t: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: D = None
        self.z: H = None
        self.w: B = None
        self.txt = txt

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

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