class A:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: I = None
        self.r: H = None
        self.q: H = None
        self.u: E = None
        self.v: C = None
        self.s: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: I = None
        self.u: D = None
        self.x: E = None
        self.o: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: D = None
        self.z: H = None
        self.v: F = None
        self.t: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: H = None
        self.p: B = None
        self.z: E = None
        self.x: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: I = None
        self.u: D = None
        self.x: E = None
        self.o: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: D = None
        self.z: H = None
        self.v: F = None
        self.t: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: H = None
        self.p: B = None
        self.z: E = None
        self.x: F = None
        self.txt = txt

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

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