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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: A = None
        self.y: F = None
        self.p: H = None
        self.w: C = None
        self.u: C = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: D = None
        self.y: I = None
        self.s: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: D = None
        self.r: E = None
        self.u: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: A = None
        self.y: F = None
        self.p: H = None
        self.w: C = None
        self.u: C = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: D = None
        self.y: I = None
        self.s: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: D = None
        self.r: E = None
        self.u: C = None
        self.txt = txt

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

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