class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: B = None
        self.u: D = None
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: E = None
        self.x: F = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: E = None
        self.x: F = None
        self.txt = txt

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

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

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

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

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

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