class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: I = None
        self.t: E = None
        self.w: G = None
        self.o: J = None
        self.y: J = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: B = None
        self.r: B = None
        self.u: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: E = None
        self.w: D = None
        self.s: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: C = None
        self.y: G = None
        self.q: D = None
        self.r: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: B = None
        self.r: B = None
        self.u: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: E = None
        self.w: D = None
        self.s: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: C = None
        self.y: G = None
        self.q: D = None
        self.r: G = None
        self.txt = txt

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

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