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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: E = None
        self.q: C = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: C = None
        self.u: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: A = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: B = None
        self.q: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: A = None
        self.q: E = None
        self.r: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: E = None
        self.q: C = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: C = None
        self.u: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: A = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: B = None
        self.q: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: A = None
        self.q: E = None
        self.r: H = None
        self.txt = txt

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

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