class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: C = None
        self.r: D = None
        self.o: H = None
        self.p: J = None
        self.w: I = None
        self.z: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: G = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: F = None
        self.v: B = None
        self.x: H = None
        self.z: H = None
        self.t: A = None
        self.s: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: C = None
        self.v: H = None
        self.y: C = None
        self.u: B = None
        self.x: J = None
        self.s: A = None
        self.t: I = None
        self.txt = txt

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: G = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: F = None
        self.v: B = None
        self.x: H = None
        self.z: H = None
        self.t: A = None
        self.s: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: C = None
        self.v: H = None
        self.y: C = None
        self.u: B = None
        self.x: J = None
        self.s: A = None
        self.t: I = None
        self.txt = txt

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

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

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

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

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

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

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

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