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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: E = None
        self.t: A = None
        self.o: H = None
        self.w: F = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: C = None
        self.u: B = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: A = None
        self.r: D = None
        self.w: B = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: B = None
        self.o: H = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: F = None
        self.q: F = None
        self.p: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: E = None
        self.t: A = None
        self.o: H = None
        self.w: F = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: C = None
        self.u: B = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: A = None
        self.r: D = None
        self.w: B = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: B = None
        self.o: H = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: F = None
        self.q: F = None
        self.p: C = None
        self.txt = txt

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

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