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

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.w: J = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: F = None
        self.t: D = None
        self.u: E = None
        self.v: A = None
        self.z: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: B = None
        self.t: J = None
        self.s: F = None
        self.x: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: I = None
        self.p: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: B = None
        self.w: A = None
        self.q: E = None
        self.o: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: B = None
        self.q: E = None
        self.t: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.w: J = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: F = None
        self.t: D = None
        self.u: E = None
        self.v: A = None
        self.z: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: B = None
        self.t: J = None
        self.s: F = None
        self.x: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: I = None
        self.p: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: B = None
        self.w: A = None
        self.q: E = None
        self.o: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: B = None
        self.q: E = None
        self.t: H = None
        self.txt = txt

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

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