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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: B = None
        self.z: B = None
        self.w: A = None
        self.r: I = None
        self.p: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: B = None
        self.s: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: B = None
        self.z: B = None
        self.w: A = None
        self.r: I = None
        self.p: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: B = None
        self.s: F = None
        self.txt = txt

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

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