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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: H = None
        self.t: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: A = None
        self.q: J = None
        self.p: C = None
        self.u: I = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: H = None
        self.t: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: A = None
        self.q: J = None
        self.p: C = None
        self.u: I = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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