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

class B:
    def __init__(self, txt: str):
        self.z: J = None
        self.p: I = None
        self.s: H = None
        self.v: H = None
        self.y: C = None
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: B = None
        self.v: J = None
        self.q: J = None
        self.o: B = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: J = None
        self.p: I = None
        self.s: H = None
        self.v: H = None
        self.y: C = None
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: B = None
        self.v: J = None
        self.q: J = None
        self.o: B = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: A = None
        self.txt = txt

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

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