class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.o: F = None
        self.u: F = None
        self.t: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.v: E = None
        self.y: G = None
        self.u: H = None
        self.r: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.x: I = None
        self.r: B = None
        self.q: B = None
        self.s: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: B = None
        self.y: E = None
        self.q: E = None
        self.r: I = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: A = None
        self.o: A = None
        self.q: A = None
        self.p: F = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: E = None
        self.v: H = None
        self.s: B = None
        self.t: E = None
        self.txt = txt

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

g.p = a
g.t = a
g.o = k
g.u = k
b.q = a
b.r = a
b.v = c
b.y = d
b.u = l
a.o = k
a.u = k
a.w = b
a.x = c
a.t = j
a.s = h
a.z = h
a.q = g
a.r = i
i.z = j
i.x = j
i.r = b
i.q = b
i.s = a
c.w = i
c.z = i
c.q = i
c.x = k
c.p = b
c.o = b
c.y = d
c.t = h
k.p = g
k.z = b
k.y = c
k.q = c
k.r = j
k.t = j
d.u = a
d.r = g
d.o = g
d.q = g
d.p = k
d.y = l
l.w = a
l.q = k
j.o = a
j.v = a
j.x = a
j.y = c
j.t = i
j.u = d
j.q = l
j.z = h
h.y = c
h.x = c
h.t = c
h.v = l
h.s = b
assert d.y.q.q.x.t.v.r.q.v.txt == "
class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.o: F = None
        self.u: F = None
        self.t: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.v: E = None
        self.y: G = None
        self.u: H = None
        self.r: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.x: I = None
        self.r: B = None
        self.q: B = None
        self.s: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: B = None
        self.y: E = None
        self.q: E = None
        self.r: I = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: A = None
        self.o: A = None
        self.q: A = None
        self.p: F = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: E = None
        self.v: H = None
        self.s: B = None
        self.t: E = None
        self.txt = txt

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

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