class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.w: A = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: C = None
        self.q: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: A = None
        self.u: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: D = None
        self.p: A = None
        self.x: F = None
        self.o: F = None
        self.t: B = None
        self.s: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.w: A = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: C = None
        self.q: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: A = None
        self.u: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: D = None
        self.p: A = None
        self.x: F = None
        self.o: F = None
        self.t: B = None
        self.s: F = None
        self.txt = txt

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

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