class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: D = None
        self.r: H = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.t: C = None
        self.r: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: D = None
        self.s: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: E = None
        self.w: B = None
        self.v: D = None
        self.o: G = None
        self.r: A = None
        self.p: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.t: C = None
        self.r: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: D = None
        self.s: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: E = None
        self.w: B = None
        self.v: D = None
        self.o: G = None
        self.r: A = None
        self.p: G = None
        self.txt = txt

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

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