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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: D = None
        self.r: I = None
        self.q: H = None
        self.o: F = None
        self.v: G = None
        self.z: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: B = None
        self.t: B = None
        self.u: B = None
        self.x: A = None
        self.r: B = None
        self.o: I = None
        self.s: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: F = None
        self.v: G = None
        self.r: A = None
        self.q: F = None
        self.y: B = None
        self.o: F = None
        self.p: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: A = None
        self.s: G = None
        self.y: G = None
        self.p: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: D = None
        self.r: I = None
        self.q: H = None
        self.o: F = None
        self.v: G = None
        self.z: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: B = None
        self.t: B = None
        self.u: B = None
        self.x: A = None
        self.r: B = None
        self.o: I = None
        self.s: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: F = None
        self.v: G = None
        self.r: A = None
        self.q: F = None
        self.y: B = None
        self.o: F = None
        self.p: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: A = None
        self.s: G = None
        self.y: G = None
        self.p: C = None
        self.txt = txt

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

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