class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: H = None
        self.t: C = None
        self.u: B = None
        self.x: C = None
        self.r: H = None
        self.p: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.v: E = None
        self.o: C = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: A = None
        self.z: G = None
        self.p: G = None
        self.r: D = None
        self.o: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: H = None
        self.t: C = None
        self.u: B = None
        self.x: C = None
        self.r: H = None
        self.p: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.v: E = None
        self.o: C = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: A = None
        self.z: G = None
        self.p: G = None
        self.r: D = None
        self.o: C = None
        self.txt = txt

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

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