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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: G = None
        self.u: E = None
        self.o: C = None
        self.q: E = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: G = None
        self.r: C = None
        self.x: G = None
        self.v: H = None
        self.u: B = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: G = None
        self.u: E = None
        self.o: C = None
        self.q: E = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: G = None
        self.r: C = None
        self.x: G = None
        self.v: H = None
        self.u: B = None
        self.txt = txt

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

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

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

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

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