class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: E = None
        self.t: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: F = None
        self.s: H = None
        self.t: G = None
        self.r: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: I = None
        self.s: B = None
        self.q: D = None
        self.y: B = None
        self.w: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.v: G = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: C = None
        self.s: B = None
        self.p: G = None
        self.o: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: F = None
        self.s: H = None
        self.t: G = None
        self.r: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: I = None
        self.s: B = None
        self.q: D = None
        self.y: B = None
        self.w: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.v: G = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: C = None
        self.s: B = None
        self.p: G = None
        self.o: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: I = None
        self.txt = txt

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

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