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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: H = None
        self.q: A = None
        self.y: F = None
        self.u: E = None
        self.o: A = None
        self.v: I = None
        self.z: F = None
        self.r: I = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: B = None
        self.y: H = None
        self.x: D = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: A = None
        self.x: B = None
        self.v: F = None
        self.r: C = None
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: H = None
        self.q: A = None
        self.y: F = None
        self.u: E = None
        self.o: A = None
        self.v: I = None
        self.z: F = None
        self.r: I = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: B = None
        self.y: H = None
        self.x: D = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: A = None
        self.x: B = None
        self.v: F = None
        self.r: C = None
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

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

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