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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: A = None
        self.o: D = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.p: B = None
        self.o: J = None
        self.x: I = None
        self.q: A = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: A = None
        self.s: D = None
        self.w: G = None
        self.o: D = None
        self.q: D = None
        self.y: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: B = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: F = None
        self.x: C = None
        self.z: D = None
        self.p: H = None
        self.o: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: H = None
        self.o: H = None
        self.u: H = None
        self.y: B = None
        self.t: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: H = None
        self.w: I = None
        self.z: E = None
        self.r: E = None
        self.p: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: A = None
        self.o: D = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.p: B = None
        self.o: J = None
        self.x: I = None
        self.q: A = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: A = None
        self.s: D = None
        self.w: G = None
        self.o: D = None
        self.q: D = None
        self.y: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: B = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: F = None
        self.x: C = None
        self.z: D = None
        self.p: H = None
        self.o: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: H = None
        self.o: H = None
        self.u: H = None
        self.y: B = None
        self.t: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: H = None
        self.w: I = None
        self.z: E = None
        self.r: E = None
        self.p: D = None
        self.txt = txt

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

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