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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: F = None
        self.z: C = None
        self.o: C = None
        self.x: F = None
        self.r: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: F = None
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: A = None
        self.x: B = None
        self.s: A = None
        self.z: G = None
        self.y: D = None
        self.w: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: B = None
        self.t: B = None
        self.y: E = None
        self.z: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: F = None
        self.z: C = None
        self.o: C = None
        self.x: F = None
        self.r: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: F = None
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: A = None
        self.x: B = None
        self.s: A = None
        self.z: G = None
        self.y: D = None
        self.w: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: B = None
        self.t: B = None
        self.y: E = None
        self.z: A = None
        self.txt = txt

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

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