class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: E = None
        self.q: D = None
        self.p: B = None
        self.z: D = None
        self.r: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: C = None
        self.r: C = None
        self.u: D = None
        self.q: A = None
        self.y: H = None
        self.z: C = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: F = None
        self.v: A = None
        self.x: E = None
        self.s: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: C = None
        self.r: C = None
        self.u: D = None
        self.q: A = None
        self.y: H = None
        self.z: C = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: F = None
        self.v: A = None
        self.x: E = None
        self.s: B = None
        self.txt = txt

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

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