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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: E = None
        self.s: F = None
        self.v: G = None
        self.q: C = None
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: E = None
        self.u: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: B = None
        self.s: F = None
        self.w: F = None
        self.q: F = None
        self.z: D = None
        self.p: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: E = None
        self.s: F = None
        self.v: G = None
        self.q: C = None
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: E = None
        self.u: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: B = None
        self.s: F = None
        self.w: F = None
        self.q: F = None
        self.z: D = None
        self.p: B = None
        self.txt = txt

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

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

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