class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: C = None
        self.w: B = None
        self.v: E = None
        self.z: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: H = None
        self.v: E = None
        self.s: F = None
        self.z: E = None
        self.o: D = None
        self.q: H = None
        self.y: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: G = None
        self.o: A = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: F = None
        self.x: F = None
        self.w: B = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: D = None
        self.t: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: F = None
        self.w: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: H = None
        self.v: E = None
        self.s: F = None
        self.z: E = None
        self.o: D = None
        self.q: H = None
        self.y: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: G = None
        self.o: A = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: F = None
        self.x: F = None
        self.w: B = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: D = None
        self.t: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: F = None
        self.w: G = None
        self.txt = txt

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

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