class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: B = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: B = None
        self.v: B = None
        self.s: E = None
        self.p: E = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: B = None
        self.v: B = None
        self.s: E = None
        self.p: E = None
        self.u: E = None
        self.txt = txt

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

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

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