class A:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: D = None
        self.w: A = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: C = None
        self.u: H = None
        self.p: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: E = None
        self.s: G = None
        self.x: H = None
        self.z: D = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: E = None
        self.s: D = None
        self.q: A = None
        self.r: A = None
        self.u: E = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: B = None
        self.x: D = None
        self.s: F = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: C = None
        self.u: H = None
        self.p: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: E = None
        self.s: G = None
        self.x: H = None
        self.z: D = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: E = None
        self.s: D = None
        self.q: A = None
        self.r: A = None
        self.u: E = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: B = None
        self.x: D = None
        self.s: F = None
        self.txt = txt

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

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