class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: D = None
        self.o: A = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: C = None
        self.w: E = None
        self.u: H = None
        self.o: G = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: D = None
        self.o: A = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: C = None
        self.w: E = None
        self.u: H = None
        self.o: G = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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

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