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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: I = None
        self.p: J = None
        self.v: D = None
        self.w: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: H = None
        self.v: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: C = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: I = None
        self.p: J = None
        self.v: D = None
        self.w: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: H = None
        self.v: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: C = None
        self.txt = txt

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

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

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