class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: C = None
        self.r: B = None
        self.x: E = None
        self.w: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: C = None
        self.r: G = None
        self.y: F = None
        self.txt = txt

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

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

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

i = A("i")
h = B("h")
d = C("d")
n = D("n")
l = E("l")
j = F("j")
c = G("c")
b = C("b")
m = D("m")

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: C = None
        self.r: G = None
        self.y: F = None
        self.txt = txt

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

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

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

i = A("i")
h = B("h")
d = C("d")
n = D("n")
l = E("l")
j = F("j")
c = G("c")
b = C("b")
m = D("m")

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