class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: J = None
        self.u: D = None
        self.x: G = None
        self.o: G = None
        self.y: D = None
        self.t: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: B = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: C = None
        self.v: G = None
        self.z: J = None
        self.s: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: B = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: C = None
        self.v: G = None
        self.z: J = None
        self.s: C = None
        self.txt = txt

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

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

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