class A:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: I = None
        self.z: E = None
        self.p: D = None
        self.y: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: D = None
        self.t: H = None
        self.v: H = None
        self.w: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: D = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: E = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: D = None
        self.t: B = None
        self.p: F = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: D = None
        self.t: H = None
        self.v: H = None
        self.w: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: D = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: E = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: D = None
        self.t: B = None
        self.p: F = None
        self.txt = txt

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

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

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

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

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