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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: D = None
        self.w: G = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: A = None
        self.r: G = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: E = None
        self.s: B = None
        self.v: F = None
        self.p: I = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: B = None
        self.y: D = None
        self.p: C = None
        self.o: H = None
        self.s: B = None
        self.w: C = None
        self.x: H = None
        self.txt = txt

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

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

h = A("h")
c = B("c")
d = C("d")
k = D("k")
l = E("l")
m = F("m")
i = G("i")
b = H("b")
a = I("a")

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: D = None
        self.w: G = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: A = None
        self.r: G = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: E = None
        self.s: B = None
        self.v: F = None
        self.p: I = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: B = None
        self.y: D = None
        self.p: C = None
        self.o: H = None
        self.s: B = None
        self.w: C = None
        self.x: H = None
        self.txt = txt

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

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

h = A("h")
c = B("c")
d = C("d")
k = D("k")
l = E("l")
m = F("m")
i = G("i")
b = H("b")
a = I("a")

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