class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: J = None
        self.p: E = None
        self.x: H = None
        self.s: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: E = None
        self.v: F = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.q: C = None
        self.w: I = None
        self.z: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: B = None
        self.z: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: B = None
        self.z: H = None
        self.w: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: E = None
        self.v: F = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.q: C = None
        self.w: I = None
        self.z: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: B = None
        self.z: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: B = None
        self.z: H = None
        self.w: B = None
        self.txt = txt

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

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