class A:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: B = None
        self.q: F = None
        self.u: H = None
        self.p: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: G = None
        self.u: D = None
        self.t: H = None
        self.o: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: E = None
        self.s: D = None
        self.u: I = None
        self.r: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: C = None
        self.v: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: D = None
        self.s: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: G = None
        self.u: D = None
        self.t: H = None
        self.o: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: E = None
        self.s: D = None
        self.u: I = None
        self.r: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: C = None
        self.v: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: D = None
        self.s: E = None
        self.txt = txt

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

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