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

class B:
    def __init__(self, txt: str):
        self.u: J = None
        self.q: C = None
        self.x: J = None
        self.r: C = None
        self.t: I = None
        self.p: E = None
        self.y: J = None
        self.s: J = None
        self.o: C = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: J = None
        self.w: A = None
        self.o: F = None
        self.x: A = None
        self.p: I = None
        self.y: B = None
        self.u: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: E = None
        self.u: E = None
        self.r: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: D = None
        self.q: E = None
        self.y: B = None
        self.s: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: I = None
        self.z: C = None
        self.x: G = None
        self.t: A = None
        self.r: C = None
        self.p: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: J = None
        self.q: C = None
        self.x: J = None
        self.r: C = None
        self.t: I = None
        self.p: E = None
        self.y: J = None
        self.s: J = None
        self.o: C = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: J = None
        self.w: A = None
        self.o: F = None
        self.x: A = None
        self.p: I = None
        self.y: B = None
        self.u: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: E = None
        self.u: E = None
        self.r: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: D = None
        self.q: E = None
        self.y: B = None
        self.s: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: I = None
        self.z: C = None
        self.x: G = None
        self.t: A = None
        self.r: C = None
        self.p: I = None
        self.txt = txt

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

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