class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: H = None
        self.o: H = None
        self.p: D = None
        self.x: C = None
        self.r: D = None
        self.y: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: E = None
        self.o: G = None
        self.u: F = None
        self.z: H = None
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: F = None
        self.p: B = None
        self.u: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: A = None
        self.v: E = None
        self.y: A = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: E = None
        self.z: A = None
        self.q: H = None
        self.v: B = None
        self.r: B = None
        self.x: E = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.s: E = None
        self.x: D = None
        self.u: F = None
        self.y: F = None
        self.w: D = None
        self.t: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: E = None
        self.o: G = None
        self.u: F = None
        self.z: H = None
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: F = None
        self.p: B = None
        self.u: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: A = None
        self.v: E = None
        self.y: A = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: E = None
        self.z: A = None
        self.q: H = None
        self.v: B = None
        self.r: B = None
        self.x: E = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.s: E = None
        self.x: D = None
        self.u: F = None
        self.y: F = None
        self.w: D = None
        self.t: F = None
        self.txt = txt

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

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