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

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: B = None
        self.t: B = None
        self.o: G = None
        self.x: A = None
        self.y: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.s: C = None
        self.z: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: J = None
        self.o: B = None
        self.y: D = None
        self.x: J = None
        self.r: D = None
        self.u: F = None
        self.q: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: B = None
        self.t: B = None
        self.o: G = None
        self.x: A = None
        self.y: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.s: C = None
        self.z: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: J = None
        self.o: B = None
        self.y: D = None
        self.x: J = None
        self.r: D = None
        self.u: F = None
        self.q: J = None
        self.txt = txt

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

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

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