class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: F = None
        self.s: B = None
        self.w: J = None
        self.o: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: E = None
        self.p: D = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: I = None
        self.t: E = None
        self.o: J = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: A = None
        self.v: J = None
        self.x: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: E = None
        self.p: D = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: I = None
        self.t: E = None
        self.o: J = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: A = None
        self.v: J = None
        self.x: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

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

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