class A:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: E = None
        self.z: J = None
        self.t: H = None
        self.w: B = None
        self.y: C = None
        self.v: G = None
        self.u: H = None
        self.p: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: E = None
        self.s: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: E = None
        self.v: I = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: F = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: F = None
        self.y: I = None
        self.w: A = None
        self.x: I = None
        self.u: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.y: I = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: E = None
        self.s: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: E = None
        self.v: I = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: F = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: F = None
        self.y: I = None
        self.w: A = None
        self.x: I = None
        self.u: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.y: I = None
        self.txt = txt

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

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

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

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