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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: I = None
        self.u: A = None
        self.x: H = None
        self.r: G = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.q: A = None
        self.y: I = None
        self.o: J = None
        self.t: J = None
        self.p: B = None
        self.u: B = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.x: G = None
        self.v: A = None
        self.r: I = None
        self.w: J = None
        self.t: D = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: G = None
        self.x: C = None
        self.v: E = None
        self.r: A = None
        self.t: J = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: I = None
        self.u: A = None
        self.x: H = None
        self.r: G = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.q: A = None
        self.y: I = None
        self.o: J = None
        self.t: J = None
        self.p: B = None
        self.u: B = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.x: G = None
        self.v: A = None
        self.r: I = None
        self.w: J = None
        self.t: D = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: G = None
        self.x: C = None
        self.v: E = None
        self.r: A = None
        self.t: J = None
        self.txt = txt

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

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

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

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

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

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