class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: A = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: F = None
        self.s: B = None
        self.y: F = None
        self.w: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: C = None
        self.v: J = None
        self.w: I = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: F = None
        self.p: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: D = None
        self.z: C = None
        self.w: C = None
        self.u: G = None
        self.s: H = None
        self.v: C = None
        self.p: F = None
        self.r: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: A = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: F = None
        self.s: B = None
        self.y: F = None
        self.w: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: C = None
        self.v: J = None
        self.w: I = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: F = None
        self.p: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: D = None
        self.z: C = None
        self.w: C = None
        self.u: G = None
        self.s: H = None
        self.v: C = None
        self.p: F = None
        self.r: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: D = None
        self.txt = txt

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

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