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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: A = None
        self.q: E = None
        self.t: G = None
        self.o: E = None
        self.x: F = None
        self.s: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: B = None
        self.y: C = None
        self.s: G = None
        self.p: G = None
        self.v: D = None
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: A = None
        self.q: E = None
        self.t: A = None
        self.y: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: A = None
        self.q: E = None
        self.t: G = None
        self.o: E = None
        self.x: F = None
        self.s: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: B = None
        self.y: C = None
        self.s: G = None
        self.p: G = None
        self.v: D = None
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: A = None
        self.q: E = None
        self.t: A = None
        self.y: B = None
        self.txt = txt

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

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

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

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