class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: G = None
        self.t: C = None
        self.y: F = None
        self.p: J = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: F = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.t: C = None
        self.x: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.v: F = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: C = None
        self.w: I = None
        self.x: A = None
        self.z: E = None
        self.p: A = None
        self.u: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: B = None
        self.r: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: F = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.t: C = None
        self.x: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.v: F = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: C = None
        self.w: I = None
        self.x: A = None
        self.z: E = None
        self.p: A = None
        self.u: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: B = None
        self.r: F = None
        self.txt = txt

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

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