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

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.t: J = None
        self.u: G = None
        self.z: C = None
        self.s: F = None
        self.p: J = None
        self.o: H = None
        self.v: G = None
        self.r: J = None
        self.w: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: H = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: E = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: I = None
        self.q: H = None
        self.t: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: F = None
        self.z: H = None
        self.s: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.t: J = None
        self.u: G = None
        self.z: C = None
        self.s: F = None
        self.p: J = None
        self.o: H = None
        self.v: G = None
        self.r: J = None
        self.w: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: H = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: E = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: I = None
        self.q: H = None
        self.t: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: F = None
        self.z: H = None
        self.s: J = None
        self.txt = txt

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

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

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