class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: G = None
        self.o: E = None
        self.r: C = None
        self.x: E = None
        self.z: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: G = None
        self.u: B = None
        self.r: E = None
        self.t: B = None
        self.y: A = None
        self.w: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: B = None
        self.o: D = None
        self.p: C = None
        self.r: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: C = None
        self.q: C = None
        self.x: B = None
        self.s: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: G = None
        self.u: B = None
        self.r: E = None
        self.t: B = None
        self.y: A = None
        self.w: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: B = None
        self.o: D = None
        self.p: C = None
        self.r: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: C = None
        self.q: C = None
        self.x: B = None
        self.s: D = None
        self.txt = txt

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

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

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