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

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

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: E = None
        self.z: C = None
        self.x: H = None
        self.s: F = None
        self.u: B = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: E = None
        self.z: C = None
        self.x: H = None
        self.s: F = None
        self.u: B = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

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

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