class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.r: I = None
        self.u: I = None
        self.p: C = None
        self.x: I = None
        self.q: C = None
        self.z: J = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: D = None
        self.x: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: B = None
        self.o: H = None
        self.u: H = None
        self.v: F = None
        self.r: J = None
        self.w: H = None
        self.p: B = None
        self.t: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: D = None
        self.x: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: B = None
        self.o: H = None
        self.u: H = None
        self.v: F = None
        self.r: J = None
        self.w: H = None
        self.p: B = None
        self.t: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

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