class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: C = None
        self.s: F = None
        self.z: H = None
        self.y: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: A = None
        self.z: D = None
        self.s: G = None
        self.r: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: A = None
        self.x: H = None
        self.q: D = None
        self.r: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: B = None
        self.q: E = None
        self.x: H = None
        self.t: F = None
        self.s: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: A = None
        self.z: D = None
        self.s: G = None
        self.r: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: A = None
        self.x: H = None
        self.q: D = None
        self.r: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: B = None
        self.q: E = None
        self.x: H = None
        self.t: F = None
        self.s: E = None
        self.txt = txt

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

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