class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: E = None
        self.t: E = None
        self.o: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: E = None
        self.v: F = None
        self.y: F = None
        self.o: G = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: G = None
        self.s: B = None
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: A = None
        self.y: A = None
        self.w: G = None
        self.v: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: E = None
        self.v: F = None
        self.y: F = None
        self.o: G = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: G = None
        self.s: B = None
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: A = None
        self.y: A = None
        self.w: G = None
        self.v: E = None
        self.txt = txt

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

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