class A:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: I = None
        self.o: C = None
        self.w: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: E = None
        self.u: F = None
        self.t: J = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: A = None
        self.u: H = None
        self.s: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: G = None
        self.s: H = None
        self.v: I = None
        self.x: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: G = None
        self.y: A = None
        self.z: D = None
        self.u: D = None
        self.o: A = None
        self.p: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.w: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: I = None
        self.x: H = None
        self.r: A = None
        self.s: H = None
        self.u: A = None
        self.p: G = None
        self.w: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: E = None
        self.u: F = None
        self.t: J = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: A = None
        self.u: H = None
        self.s: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: G = None
        self.s: H = None
        self.v: I = None
        self.x: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: G = None
        self.y: A = None
        self.z: D = None
        self.u: D = None
        self.o: A = None
        self.p: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.w: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: I = None
        self.x: H = None
        self.r: A = None
        self.s: H = None
        self.u: A = None
        self.p: G = None
        self.w: G = None
        self.txt = txt

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

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