class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: C = None
        self.w: E = None
        self.y: B = None
        self.r: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: A = None
        self.o: D = None
        self.q: F = None
        self.w: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: F = None
        self.t: A = None
        self.p: A = None
        self.u: E = None
        self.z: B = None
        self.txt = txt

e = A("e")
k = B("k")
j = C("j")
g = D("g")
d = E("d")
a = F("a")
n = E("n")
l = A("l")
f = F("f")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: A = None
        self.o: D = None
        self.q: F = None
        self.w: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: F = None
        self.t: A = None
        self.p: A = None
        self.u: E = None
        self.z: B = None
        self.txt = txt

e = A("e")
k = B("k")
j = C("j")
g = D("g")
d = E("d")
a = F("a")
n = E("n")
l = A("l")
f = F("f")

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