class A:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: G = None
        self.y: I = None
        self.o: H = None
        self.t: D = None
        self.r: D = None
        self.v: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: B = None
        self.o: A = None
        self.q: D = None
        self.t: C = None
        self.w: D = None
        self.z: A = None
        self.r: D = None
        self.v: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: J = None
        self.q: B = None
        self.u: B = None
        self.t: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: D = None
        self.y: C = None
        self.p: H = None
        self.w: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: F = None
        self.z: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: G = None
        self.y: I = None
        self.o: H = None
        self.t: D = None
        self.r: D = None
        self.v: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: B = None
        self.o: A = None
        self.q: D = None
        self.t: C = None
        self.w: D = None
        self.z: A = None
        self.r: D = None
        self.v: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: J = None
        self.q: B = None
        self.u: B = None
        self.t: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: D = None
        self.y: C = None
        self.p: H = None
        self.w: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: F = None
        self.z: G = None
        self.txt = txt

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

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