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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: D = None
        self.o: A = None
        self.q: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: G = None
        self.z: A = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: A = None
        self.y: E = None
        self.x: G = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: C = None
        self.w: F = None
        self.x: C = None
        self.r: F = None
        self.o: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: D = None
        self.o: A = None
        self.q: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: G = None
        self.z: A = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: A = None
        self.y: E = None
        self.x: G = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: C = None
        self.w: F = None
        self.x: C = None
        self.r: F = None
        self.o: B = None
        self.txt = txt

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

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