class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: H = None
        self.v: B = None
        self.y: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: D = None
        self.q: H = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: C = None
        self.r: C = None
        self.w: E = None
        self.y: F = None
        self.t: I = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: D = None
        self.q: H = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: C = None
        self.r: C = None
        self.w: E = None
        self.y: F = None
        self.t: I = None
        self.txt = txt

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

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

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

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