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

class B:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: B = None
        self.t: G = None
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: E = None
        self.t: B = None
        self.p: H = None
        self.r: C = None
        self.v: H = None
        self.s: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: E = None
        self.y: E = None
        self.s: H = None
        self.x: D = None
        self.v: H = None
        self.txt = txt

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

d = A("d")
e = B("e")
h = C("h")
b = D("b")
c = E("c")
i = F("i")
l = G("l")
j = H("j")
g = B("g")

d.t = b
d.u = h
d.y = h
d.p = c
d.w = l
e.v = g
e.r = g
e.t = l
e.o = l
h.v = b
h.w = c
h.z = l
h.p = d
h.y = i
h.o = j
h.s = g
b.w = d
b.o = c
b.t = e
b.p = j
b.v = j
b.r = h
b.s = g
c.u = l
c.w = h
i.q = h
i.y = b
i.p = b
i.u = e
l.q = c
l.t = c
l.y = c
l.s = j
l.v = j
l.x = b
j.q = g
j.p = d
j.t = i
g.v = e
g.r = e
g.t = l
g.o = l
assert d.p.u.s.txt == "
class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: C = None
        self.y: C = None
        self.p: E = None
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: B = None
        self.t: G = None
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: E = None
        self.t: B = None
        self.p: H = None
        self.r: C = None
        self.v: H = None
        self.s: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: E = None
        self.y: E = None
        self.s: H = None
        self.x: D = None
        self.v: H = None
        self.txt = txt

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

d = A("d")
e = B("e")
h = C("h")
b = D("b")
c = E("c")
i = F("i")
l = G("l")
j = H("j")
g = B("g")

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