class A:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: F = None
        self.s: B = None
        self.y: F = None
        self.v: E = None
        self.w: A = None
        self.q: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: C = None
        self.s: F = None
        self.v: A = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: B = None
        self.v: H = None
        self.w: H = None
        self.q: H = None
        self.s: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: D = None
        self.t: E = None
        self.p: B = None
        self.u: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: C = None
        self.s: F = None
        self.v: A = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: B = None
        self.v: H = None
        self.w: H = None
        self.q: H = None
        self.s: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: D = None
        self.t: E = None
        self.p: B = None
        self.u: D = None
        self.txt = txt

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

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

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

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