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

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

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: H = None
        self.q: E = None
        self.x: I = None
        self.p: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.w: D = None
        self.y: C = None
        self.t: A = None
        self.x: D = None
        self.s: C = None
        self.r: E = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: F = None
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: H = None
        self.q: E = None
        self.x: I = None
        self.p: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.w: D = None
        self.y: C = None
        self.t: A = None
        self.x: D = None
        self.s: C = None
        self.r: E = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: F = None
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: F = None
        self.txt = txt

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

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