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

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

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: E = None
        self.p: H = None
        self.o: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: B = None
        self.w: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: H = None
        self.p: J = None
        self.x: B = None
        self.o: I = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: I = None
        self.w: H = None
        self.v: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: F = None
        self.w: F = None
        self.z: C = None
        self.p: D = None
        self.r: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: E = None
        self.p: G = None
        self.o: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: E = None
        self.p: H = None
        self.o: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: B = None
        self.w: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: H = None
        self.p: J = None
        self.x: B = None
        self.o: I = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: I = None
        self.w: H = None
        self.v: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: F = None
        self.w: F = None
        self.z: C = None
        self.p: D = None
        self.r: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: E = None
        self.p: G = None
        self.o: C = None
        self.txt = txt

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

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