class A:
    def __init__(self, txt: str):
        self.s: I = None
        self.q: C = None
        self.p: E = None
        self.y: G = None
        self.z: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: C = None
        self.p: G = None
        self.w: D = None
        self.y: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: D = None
        self.v: E = None
        self.p: B = None
        self.q: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: I = None
        self.r: C = None
        self.y: F = None
        self.t: H = None
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: G = None
        self.v: D = None
        self.w: G = None
        self.t: B = None
        self.z: D = None
        self.r: I = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: C = None
        self.p: G = None
        self.w: D = None
        self.y: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: D = None
        self.v: E = None
        self.p: B = None
        self.q: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: I = None
        self.r: C = None
        self.y: F = None
        self.t: H = None
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: G = None
        self.v: D = None
        self.w: G = None
        self.t: B = None
        self.z: D = None
        self.r: I = None
        self.txt = txt

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

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

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

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

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