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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: J = None
        self.s: E = None
        self.v: G = None
        self.r: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: J = None
        self.q: J = None
        self.p: C = None
        self.o: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: I = None
        self.w: A = None
        self.s: D = None
        self.v: J = None
        self.o: A = None
        self.q: A = None
        self.x: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: J = None
        self.s: E = None
        self.v: G = None
        self.r: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: J = None
        self.q: J = None
        self.p: C = None
        self.o: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: I = None
        self.w: A = None
        self.s: D = None
        self.v: J = None
        self.o: A = None
        self.q: A = None
        self.x: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

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