class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: D = None
        self.x: B = None
        self.w: J = None
        self.o: C = None
        self.q: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: H = None
        self.u: A = None
        self.z: E = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: A = None
        self.y: I = None
        self.s: I = None
        self.v: A = None
        self.w: B = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: D = None
        self.x: B = None
        self.w: J = None
        self.o: C = None
        self.q: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: H = None
        self.u: A = None
        self.z: E = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: A = None
        self.y: I = None
        self.s: I = None
        self.v: A = None
        self.w: B = None
        self.txt = txt

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

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

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

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

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