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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: C = None
        self.v: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: C = None
        self.t: I = None
        self.v: B = None
        self.p: E = None
        self.x: B = None
        self.o: C = None
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: A = None
        self.o: B = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: C = None
        self.v: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: C = None
        self.t: I = None
        self.v: B = None
        self.p: E = None
        self.x: B = None
        self.o: C = None
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: A = None
        self.o: B = None
        self.txt = txt

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

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

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