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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: A = None
        self.q: A = None
        self.x: G = None
        self.z: F = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: B = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: H = None
        self.s: F = None
        self.z: E = None
        self.txt = txt

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

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

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

g.r = f
g.z = k
g.t = k
g.o = j
g.v = l
b.t = l
b.p = g
b.q = g
b.o = g
b.x = i
b.z = j
l.q = g
l.z = b
l.y = a
a.s = i
d.p = g
d.x = j
d.t = j
d.y = f
d.v = l
d.q = l
d.z = i
d.s = a
j.y = f
i.x = d
i.z = d
i.y = h
i.s = j
h.o = k
h.z = i
k.w = d
k.v = b
k.x = l
k.r = l
k.o = g
k.z = g
k.p = g
k.q = h
f.w = d
f.v = b
f.x = l
f.r = l
f.o = g
f.z = g
f.p = g
f.q = h
assert j.y.x.z.q.v.z.x.y.z.s.txt == "
class A:
    def __init__(self, txt: str):
        self.r: I = None
        self.z: I = None
        self.t: I = None
        self.o: F = None
        self.v: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: A = None
        self.q: A = None
        self.x: G = None
        self.z: F = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: B = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: H = None
        self.s: F = None
        self.z: E = None
        self.txt = txt

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

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

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

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