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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: A = None
        self.q: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

h = A("h")
d = B("d")
g = C("g")
a = D("a")
f = E("f")
e = F("e")
j = G("j")
i = H("i")
l = E("l")
k = D("k")

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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: A = None
        self.q: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

h = A("h")
d = B("d")
g = C("g")
a = D("a")
f = E("f")
e = F("e")
j = G("j")
i = H("i")
l = E("l")
k = D("k")

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