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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: D = None
        self.o: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: C = None
        self.w: I = None
        self.o: D = None
        self.r: E = None
        self.v: E = None
        self.p: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: D = None
        self.o: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: C = None
        self.w: I = None
        self.o: D = None
        self.r: E = None
        self.v: E = None
        self.p: E = None
        self.txt = txt

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

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