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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: D = None
        self.t: G = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: F = None
        self.v: B = None
        self.w: F = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: B = None
        self.y: D = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: D = None
        self.t: G = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: F = None
        self.v: B = None
        self.w: F = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: B = None
        self.y: D = None
        self.txt = txt

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

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