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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: D = None
        self.o: F = None
        self.s: G = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: C = None
        self.v: F = None
        self.r: G = None
        self.z: D = None
        self.w: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: A = None
        self.t: C = None
        self.v: D = None
        self.txt = txt

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

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

i = A("i")
d = B("d")
a = C("a")
e = D("e")
j = E("j")
b = F("b")
h = G("h")
n = G("n")
k = A("k")
f = C("f")

i.s = h
i.r = k
i.w = e
i.x = b
i.o = j
d.z = n
d.s = n
d.t = e
d.o = b
d.x = j
a.o = h
a.r = h
a.w = h
a.y = f
a.v = b
a.z = e
e.r = d
e.p = d
e.y = k
e.z = h
e.w = n
e.t = a
e.s = j
j.y = i
j.r = k
j.t = f
j.v = e
b.z = e
b.s = k
b.q = h
b.y = j
b.v = j
h.z = b
h.y = b
h.r = k
h.w = k
n.z = b
n.y = b
n.r = k
n.w = i
k.s = n
k.r = i
k.w = e
k.x = b
k.o = j
f.o = h
f.w = h
f.y = a
f.v = b
f.r = n
f.z = e
assert h.z.z.s.v.y.txt == "
class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: A = None
        self.w: D = None
        self.x: F = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: D = None
        self.o: F = None
        self.s: G = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: C = None
        self.v: F = None
        self.r: G = None
        self.z: D = None
        self.w: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: A = None
        self.t: C = None
        self.v: D = None
        self.txt = txt

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

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

i = A("i")
d = B("d")
a = C("a")
e = D("e")
j = E("j")
b = F("b")
h = G("h")
n = G("n")
k = A("k")
f = C("f")

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