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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: H = None
        self.r: I = None
        self.s: I = None
        self.v: G = None
        self.q: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.r: B = None
        self.t: C = None
        self.z: E = None
        self.x: J = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: J = None
        self.t: A = None
        self.u: F = None
        self.y: C = None
        self.x: C = None
        self.p: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: I = None
        self.x: A = None
        self.z: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: H = None
        self.r: I = None
        self.s: I = None
        self.v: G = None
        self.q: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.r: B = None
        self.t: C = None
        self.z: E = None
        self.x: J = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: J = None
        self.t: A = None
        self.u: F = None
        self.y: C = None
        self.x: C = None
        self.p: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: I = None
        self.x: A = None
        self.z: I = None
        self.txt = txt

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

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