class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: F = None
        self.r: B = None
        self.p: B = None
        self.t: F = None
        self.y: J = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: D = None
        self.y: I = None
        self.t: A = None
        self.z: H = None
        self.q: H = None
        self.u: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: F = None
        self.q: H = None
        self.u: F = None
        self.y: E = None
        self.z: D = None
        self.s: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: D = None
        self.y: I = None
        self.t: A = None
        self.z: H = None
        self.q: H = None
        self.u: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: F = None
        self.q: H = None
        self.u: F = None
        self.y: E = None
        self.z: D = None
        self.s: F = None
        self.txt = txt

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

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