class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: H = None
        self.x: E = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: A = None
        self.q: H = None
        self.x: A = None
        self.v: I = None
        self.p: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: G = None
        self.q: G = None
        self.r: B = None
        self.u: G = None
        self.t: A = None
        self.s: H = None
        self.x: F = None
        self.w: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: B = None
        self.u: H = None
        self.z: C = None
        self.t: E = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: A = None
        self.q: H = None
        self.x: A = None
        self.v: I = None
        self.p: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: G = None
        self.q: G = None
        self.r: B = None
        self.u: G = None
        self.t: A = None
        self.s: H = None
        self.x: F = None
        self.w: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: B = None
        self.u: H = None
        self.z: C = None
        self.t: E = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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

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