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

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

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

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: B = None
        self.x: C = None
        self.w: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: J = None
        self.o: C = None
        self.u: E = None
        self.t: I = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: D = None
        self.x: D = None
        self.u: H = None
        self.t: H = None
        self.z: D = None
        self.y: H = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: B = None
        self.x: C = None
        self.w: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: J = None
        self.o: C = None
        self.u: E = None
        self.t: I = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: D = None
        self.x: D = None
        self.u: H = None
        self.t: H = None
        self.z: D = None
        self.y: H = None
        self.txt = txt

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

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