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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: G = None
        self.w: I = None
        self.p: I = None
        self.x: I = None
        self.z: E = None
        self.o: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: D = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: B = None
        self.p: C = None
        self.u: B = None
        self.w: D = None
        self.v: B = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: E = None
        self.y: B = None
        self.x: D = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: G = None
        self.w: I = None
        self.p: I = None
        self.x: I = None
        self.z: E = None
        self.o: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: D = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: B = None
        self.p: C = None
        self.u: B = None
        self.w: D = None
        self.v: B = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: E = None
        self.y: B = None
        self.x: D = None
        self.txt = txt

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

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

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

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

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