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

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

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: E = None
        self.q: I = None
        self.z: B = None
        self.u: J = None
        self.s: B = None
        self.o: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: E = None
        self.w: D = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: G = None
        self.r: D = None
        self.u: B = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: E = None
        self.q: I = None
        self.z: B = None
        self.u: J = None
        self.s: B = None
        self.o: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: E = None
        self.w: D = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: G = None
        self.r: D = None
        self.u: B = None
        self.txt = txt

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

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

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

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