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

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

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: E = None
        self.o: A = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: E = None
        self.o: A = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

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