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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: H = None
        self.u: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: D = None
        self.w: C = None
        self.s: G = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: C = None
        self.t: D = None
        self.y: C = None
        self.w: F = None
        self.z: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

i = A("i")
h = B("h")
l = C("l")
m = D("m")
g = E("g")
a = F("a")
d = G("d")
e = H("e")
b = F("b")

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: H = None
        self.u: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: D = None
        self.w: C = None
        self.s: G = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: C = None
        self.t: D = None
        self.y: C = None
        self.w: F = None
        self.z: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

i = A("i")
h = B("h")
l = C("l")
m = D("m")
g = E("g")
a = F("a")
d = G("d")
e = H("e")
b = F("b")

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