class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: E = None
        self.s: H = None
        self.r: B = None
        self.q: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: H = None
        self.x: A = None
        self.r: B = None
        self.w: G = None
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: H = None
        self.z: D = None
        self.y: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.v: H = None
        self.t: H = None
        self.w: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: F = None
        self.w: C = None
        self.y: G = None
        self.x: B = None
        self.t: B = None
        self.s: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: H = None
        self.x: A = None
        self.r: B = None
        self.w: G = None
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: H = None
        self.z: D = None
        self.y: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.v: H = None
        self.t: H = None
        self.w: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: F = None
        self.w: C = None
        self.y: G = None
        self.x: B = None
        self.t: B = None
        self.s: I = None
        self.txt = txt

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

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