class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.q: C = None
        self.w: C = None
        self.r: F = None
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: C = None
        self.x: A = None
        self.w: E = None
        self.txt = txt

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: C = None
        self.x: A = None
        self.w: E = None
        self.txt = txt

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

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

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

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

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

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

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

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