class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: E = None
        self.y: B = None
        self.p: B = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: E = None
        self.q: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: C = None
        self.p: I = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: G = None
        self.x: F = None
        self.w: H = None
        self.y: D = None
        self.s: D = None
        self.v: I = None
        self.z: F = None
        self.p: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: D = None
        self.x: F = None
        self.u: F = None
        self.r: E = None
        self.v: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: D = None
        self.v: B = None
        self.o: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: E = None
        self.q: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: C = None
        self.p: I = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: G = None
        self.x: F = None
        self.w: H = None
        self.y: D = None
        self.s: D = None
        self.v: I = None
        self.z: F = None
        self.p: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: D = None
        self.x: F = None
        self.u: F = None
        self.r: E = None
        self.v: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: D = None
        self.v: B = None
        self.o: G = None
        self.txt = txt

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

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