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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: B = None
        self.r: D = None
        self.y: D = None
        self.s: A = None
        self.q: F = None
        self.p: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.v: H = None
        self.q: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: F = None
        self.z: A = None
        self.w: F = None
        self.v: C = None
        self.q: H = None
        self.r: C = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: F = None
        self.x: A = None
        self.q: A = None
        self.t: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: B = None
        self.r: D = None
        self.y: D = None
        self.s: A = None
        self.q: F = None
        self.p: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.v: H = None
        self.q: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: F = None
        self.z: A = None
        self.w: F = None
        self.v: C = None
        self.q: H = None
        self.r: C = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: F = None
        self.x: A = None
        self.q: A = None
        self.t: C = None
        self.txt = txt

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

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