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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: I = None
        self.y: D = None
        self.x: C = None
        self.v: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: J = None
        self.w: C = None
        self.v: H = None
        self.z: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: E = None
        self.y: C = None
        self.p: H = None
        self.z: E = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: J = None
        self.z: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: I = None
        self.y: D = None
        self.x: C = None
        self.v: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: J = None
        self.w: C = None
        self.v: H = None
        self.z: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: E = None
        self.y: C = None
        self.p: H = None
        self.z: E = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: J = None
        self.z: H = None
        self.txt = txt

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

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

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