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

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.z: H = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: E = None
        self.w: F = None
        self.z: G = None
        self.q: F = None
        self.u: H = None
        self.v: G = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: E = None
        self.s: A = None
        self.t: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: A = None
        self.t: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.z: H = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: E = None
        self.w: F = None
        self.z: G = None
        self.q: F = None
        self.u: H = None
        self.v: G = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: E = None
        self.s: A = None
        self.t: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: A = None
        self.t: G = None
        self.txt = txt

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

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

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