class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.w: E = None
        self.v: F = None
        self.u: B = None
        self.s: J = None
        self.q: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: J = None
        self.x: I = None
        self.t: H = None
        self.s: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: I = None
        self.z: H = None
        self.v: C = None
        self.s: I = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: D = None
        self.q: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: J = None
        self.x: I = None
        self.t: H = None
        self.s: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: I = None
        self.z: H = None
        self.v: C = None
        self.s: I = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: D = None
        self.q: G = None
        self.txt = txt

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

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