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

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

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: F = None
        self.o: B = None
        self.w: F = None
        self.y: H = None
        self.t: A = None
        self.p: F = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: B = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: A = None
        self.o: D = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: E = None
        self.s: I = None
        self.z: I = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: F = None
        self.o: B = None
        self.w: F = None
        self.y: H = None
        self.t: A = None
        self.p: F = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: B = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: A = None
        self.o: D = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: E = None
        self.s: I = None
        self.z: I = None
        self.txt = txt

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

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

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

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