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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: B = None
        self.y: G = None
        self.s: B = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: F = None
        self.u: A = None
        self.z: A = None
        self.txt = txt

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

g = A("g")
k = B("k")
m = C("m")
c = D("c")
a = E("a")
i = F("i")
f = G("f")
h = H("h")
d = H("d")

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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: B = None
        self.y: G = None
        self.s: B = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: F = None
        self.u: A = None
        self.z: A = None
        self.txt = txt

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

g = A("g")
k = B("k")
m = C("m")
c = D("c")
a = E("a")
i = F("i")
f = G("f")
h = H("h")
d = H("d")

g.w = c
g.v = i
g.t = i
g.z = m
g.o = k
g.s = k
g.x = d
g.u = a
k.q = d
m.o = g
m.r = g
m.t = k
m.s = k
m.y = f
c.x = i
c.y = g
c.w = m
a.x = d
i.o = g
i.t = g
i.z = c
i.s = h
i.p = k
f.w = c
f.p = i
f.u = g
f.z = g
h.t = k
h.s = i
h.z = g
h.r = f
h.p = f
h.x = f
h.y = c
d.t = k
d.s = i
d.z = g
d.r = f
d.p = f
d.x = f
d.y = c
assert c.w.y.u.x.t.txt == "k"