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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.w: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: J = None
        self.x: I = None
        self.y: F = None
        self.q: F = None
        self.r: I = None
        self.s: F = None
        self.w: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.x: J = None
        self.o: C = None
        self.w: G = None
        self.y: H = None
        self.v: B = None
        self.p: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.t: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: J = None
        self.w: D = None
        self.s: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.w: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: J = None
        self.x: I = None
        self.y: F = None
        self.q: F = None
        self.r: I = None
        self.s: F = None
        self.w: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.x: J = None
        self.o: C = None
        self.w: G = None
        self.y: H = None
        self.v: B = None
        self.p: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.t: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: J = None
        self.w: D = None
        self.s: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

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