class A:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: E = None
        self.q: D = None
        self.u: A = None
        self.p: H = None
        self.y: G = None
        self.w: G = None
        self.x: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: H = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: E = None
        self.q: D = None
        self.u: A = None
        self.p: H = None
        self.y: G = None
        self.w: G = None
        self.x: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: H = None
        self.txt = txt

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

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

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

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