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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: H = None
        self.v: G = None
        self.q: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: J = None
        self.w: E = None
        self.v: E = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: H = None
        self.x: E = None
        self.p: F = None
        self.q: A = None
        self.txt = txt

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

i = A("i")
k = B("k")
l = C("l")
e = D("e")
b = E("b")
g = F("g")
f = G("f")
m = H("m")
d = I("d")
h = J("h")

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: H = None
        self.v: G = None
        self.q: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: J = None
        self.w: E = None
        self.v: E = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: H = None
        self.x: E = None
        self.p: F = None
        self.q: A = None
        self.txt = txt

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

i = A("i")
k = B("k")
l = C("l")
e = D("e")
b = E("b")
g = F("g")
f = G("f")
m = H("m")
d = I("d")
h = J("h")

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