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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: G = None
        self.x: E = None
        self.t: H = None
        self.z: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: A = None
        self.t: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: G = None
        self.x: E = None
        self.t: H = None
        self.z: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: A = None
        self.t: E = None
        self.txt = txt

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

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