class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: D = None
        self.p: I = None
        self.x: C = None
        self.q: D = None
        self.z: I = None
        self.t: J = None
        self.u: C = None
        self.v: F = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: G = None
        self.r: E = None
        self.p: B = None
        self.s: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: D = None
        self.q: D = None
        self.v: F = None
        self.z: D = None
        self.p: C = None
        self.y: D = None
        self.w: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.o: F = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: G = None
        self.r: E = None
        self.p: B = None
        self.s: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: D = None
        self.q: D = None
        self.v: F = None
        self.z: D = None
        self.p: C = None
        self.y: D = None
        self.w: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.o: F = None
        self.txt = txt

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

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

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