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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: I = None
        self.v: B = None
        self.r: B = None
        self.u: G = None
        self.q: A = None
        self.p: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: D = None
        self.q: E = None
        self.u: D = None
        self.s: A = None
        self.y: I = None
        self.v: D = None
        self.o: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: I = None
        self.v: B = None
        self.r: B = None
        self.u: G = None
        self.q: A = None
        self.p: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: D = None
        self.q: E = None
        self.u: D = None
        self.s: A = None
        self.y: I = None
        self.v: D = None
        self.o: C = None
        self.txt = txt

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

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