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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: I = None
        self.r: F = None
        self.x: G = None
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: A = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: D = None
        self.u: H = None
        self.v: I = None
        self.x: G = None
        self.t: G = None
        self.r: H = None
        self.y: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: E = None
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: A = None
        self.p: G = None
        self.y: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: I = None
        self.r: F = None
        self.x: G = None
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: A = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: D = None
        self.u: H = None
        self.v: I = None
        self.x: G = None
        self.t: G = None
        self.r: H = None
        self.y: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: E = None
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: A = None
        self.p: G = None
        self.y: D = None
        self.txt = txt

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

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