class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: H = None
        self.p: F = None
        self.w: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: A = None
        self.y: C = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: A = None
        self.y: E = None
        self.z: D = None
        self.x: G = None
        self.p: A = None
        self.v: D = None
        self.t: F = None
        self.txt = txt

f = A("f")
e = B("e")
b = C("b")
k = D("k")
n = E("n")
h = F("h")
g = G("g")
j = H("j")
c = F("c")
l = C("l")

f.y = g
f.w = g
f.x = j
f.p = c
e.z = n
b.u = h
b.t = f
b.y = l
k.s = b
k.o = f
k.w = h
k.y = j
n.s = j
n.v = k
n.u = k
n.r = c
n.t = c
n.w = e
n.x = g
h.w = c
h.p = g
h.q = g
h.o = k
h.s = k
h.z = f
h.t = b
g.s = k
g.y = e
j.s = g
j.x = g
j.r = f
j.p = f
j.y = n
j.z = k
j.v = k
j.t = h
c.w = h
c.p = g
c.q = g
c.o = k
c.s = k
c.z = f
c.t = l
l.u = c
l.t = f
l.y = b
assert e.z.t.q.s.w.s.txt == "
class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: H = None
        self.p: F = None
        self.w: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: A = None
        self.y: C = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: A = None
        self.y: E = None
        self.z: D = None
        self.x: G = None
        self.p: A = None
        self.v: D = None
        self.t: F = None
        self.txt = txt

f = A("f")
e = B("e")
b = C("b")
k = D("k")
n = E("n")
h = F("h")
g = G("g")
j = H("j")
c = F("c")
l = C("l")

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