class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: G = None
        self.z: I = None
        self.x: F = None
        self.s: C = None
        self.o: D = None
        self.v: D = None
        self.u: E = None
        self.t: E = None
        self.w: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: H = None
        self.p: E = None
        self.s: I = None
        self.u: D = None
        self.t: J = None
        self.v: C = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: H = None
        self.t: F = None
        self.r: F = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.r: H = None
        self.o: J = None
        self.z: I = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: D = None
        self.v: I = None
        self.z: H = None
        self.r: I = None
        self.y: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: H = None
        self.p: E = None
        self.s: I = None
        self.u: D = None
        self.t: J = None
        self.v: C = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: H = None
        self.t: F = None
        self.r: F = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.r: H = None
        self.o: J = None
        self.z: I = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: D = None
        self.v: I = None
        self.z: H = None
        self.r: I = None
        self.y: E = None
        self.txt = txt

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

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