class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: E = None
        self.o: B = None
        self.z: F = None
        self.q: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: F = None
        self.u: G = None
        self.p: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: B = None
        self.u: D = None
        self.p: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: D = None
        self.w: C = None
        self.s: E = None
        self.t: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: F = None
        self.u: G = None
        self.p: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: B = None
        self.u: D = None
        self.p: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: D = None
        self.w: C = None
        self.s: E = None
        self.t: B = None
        self.txt = txt

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

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

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