class A:
    def __init__(self, txt: str):
        self.x: J = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: J = None
        self.w: A = None
        self.v: G = None
        self.u: F = None
        self.q: G = None
        self.y: D = None
        self.p: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: J = None
        self.t: I = None
        self.p: B = None
        self.o: B = None
        self.z: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.r: A = None
        self.o: E = None
        self.p: E = None
        self.t: D = None
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: H = None
        self.w: E = None
        self.u: C = None
        self.s: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: E = None
        self.t: G = None
        self.v: B = None
        self.q: G = None
        self.z: G = None
        self.s: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: J = None
        self.w: A = None
        self.v: G = None
        self.u: F = None
        self.q: G = None
        self.y: D = None
        self.p: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: J = None
        self.t: I = None
        self.p: B = None
        self.o: B = None
        self.z: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.r: A = None
        self.o: E = None
        self.p: E = None
        self.t: D = None
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: H = None
        self.w: E = None
        self.u: C = None
        self.s: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: E = None
        self.t: G = None
        self.v: B = None
        self.q: G = None
        self.z: G = None
        self.s: H = None
        self.txt = txt

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

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