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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: D = None
        self.x: C = None
        self.z: G = None
        self.y: D = None
        self.p: H = None
        self.t: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: D = None
        self.v: I = None
        self.p: J = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: J = None
        self.x: B = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: A = None
        self.t: E = None
        self.v: D = None
        self.o: E = None
        self.x: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: E = None
        self.u: B = None
        self.o: F = None
        self.v: G = None
        self.txt = txt

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

g.o = a
g.x = a
g.p = a
g.r = a
g.t = m
g.z = c
g.s = e
g.y = b
c.s = m
c.o = k
c.y = k
c.x = b
c.z = e
c.t = e
c.p = a
b.v = k
b.w = k
b.u = l
b.t = c
b.q = g
b.y = g
b.s = e
b.r = e
k.x = e
k.t = e
k.r = e
k.v = b
k.z = d
k.o = l
k.p = l
k.y = m
k.u = n
m.u = b
m.y = k
m.v = l
m.p = n
m.x = a
d.o = m
d.x = b
e.p = c
e.x = c
e.w = n
e.s = m
a.z = g
a.p = g
a.x = g
a.t = m
a.o = m
a.v = k
l.z = m
l.p = m
l.w = d
l.y = d
l.t = d
l.o = n
l.x = c
l.u = a
l.q = e
n.p = b
n.z = m
n.u = c
n.o = d
n.v = e
assert a.p.y.y.z.o.v.u.x.txt == "
class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: E = None
        self.z: B = None
        self.x: H = None
        self.p: H = None
        self.s: G = None
        self.y: C = None
        self.r: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: D = None
        self.x: C = None
        self.z: G = None
        self.y: D = None
        self.p: H = None
        self.t: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: D = None
        self.v: I = None
        self.p: J = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: J = None
        self.x: B = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: A = None
        self.t: E = None
        self.v: D = None
        self.o: E = None
        self.x: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: E = None
        self.u: B = None
        self.o: F = None
        self.v: G = None
        self.txt = txt

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

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