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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: I = None
        self.s: A = None
        self.u: I = None
        self.x: E = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: I = None
        self.p: F = None
        self.r: H = None
        self.t: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: I = None
        self.s: A = None
        self.u: I = None
        self.x: E = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: I = None
        self.p: F = None
        self.r: H = None
        self.t: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

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

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

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