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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.s: F = None
        self.x: A = None
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: J = None
        self.y: J = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: D = None
        self.s: J = None
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: E = None
        self.u: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.s: F = None
        self.x: A = None
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: J = None
        self.y: J = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: D = None
        self.s: J = None
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: E = None
        self.u: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: E = None
        self.txt = txt

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

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

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