class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: C = None
        self.u: I = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: J = None
        self.w: A = None
        self.q: C = None
        self.r: A = None
        self.p: D = None
        self.y: G = None
        self.x: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: F = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: J = None
        self.w: A = None
        self.q: C = None
        self.r: A = None
        self.p: D = None
        self.y: G = None
        self.x: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: F = None
        self.txt = txt

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

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