class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: I = None
        self.w: G = None
        self.o: F = None
        self.r: F = None
        self.y: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: F = None
        self.z: D = None
        self.w: C = None
        self.v: A = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: I = None
        self.u: A = None
        self.w: A = None
        self.q: G = None
        self.v: F = None
        self.x: G = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: A = None
        self.r: G = None
        self.x: F = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.o: E = None
        self.r: B = None
        self.v: F = None
        self.p: B = None
        self.q: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

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

j.x = k
j.u = f
j.w = g
j.o = d
j.r = d
j.y = m
m.y = b
m.w = b
m.q = d
m.u = d
m.z = k
m.v = j
b.r = k
b.z = f
b.u = j
b.w = j
b.o = j
b.q = g
b.x = g
b.v = d
k.p = n
k.o = f
e.p = d
e.x = d
e.o = j
e.z = j
e.r = g
d.y = e
d.v = m
g.u = a
g.o = e
g.r = m
g.p = m
g.v = d
g.q = d
n.r = k
n.u = j
n.x = j
n.p = g
n.y = g
n.t = d
n.z = a
f.u = g
a.x = d
a.s = j
a.p = j
a.v = j
a.z = g
a.r = g
a.t = m
a.y = m
a.q = k
a.o = f
assert f.u.u.t.q.v.z.o.u.p.v.txt == "
class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: I = None
        self.w: G = None
        self.o: F = None
        self.r: F = None
        self.y: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: F = None
        self.z: D = None
        self.w: C = None
        self.v: A = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: I = None
        self.u: A = None
        self.w: A = None
        self.q: G = None
        self.v: F = None
        self.x: G = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: A = None
        self.r: G = None
        self.x: F = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.o: E = None
        self.r: B = None
        self.v: F = None
        self.p: B = None
        self.q: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

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

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