class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.x: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: H = None
        self.p: C = None
        self.z: F = None
        self.s: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: B = None
        self.z: D = None
        self.o: E = None
        self.q: A = None
        self.txt = txt

i = A("i")
l = B("l")
g = C("g")
n = D("n")
j = E("j")
m = F("m")
a = G("a")
c = H("c")
k = H("k")
h = D("h")

i.u = a
l.u = i
l.x = i
g.y = a
g.o = j
n.x = g
n.u = j
n.t = i
n.r = i
j.u = h
j.t = c
j.p = g
j.z = m
j.s = i
m.z = a
m.q = i
m.y = j
a.y = j
a.p = j
a.r = m
a.x = i
c.p = k
c.r = l
c.z = h
c.o = j
c.q = i
k.p = c
k.r = l
k.z = n
k.o = j
k.q = i
h.x = g
h.u = j
h.t = i
h.r = i
assert j.p.y.y.s.u.p.t.o.p.y.txt == "
class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.x: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: H = None
        self.p: C = None
        self.z: F = None
        self.s: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: B = None
        self.z: D = None
        self.o: E = None
        self.q: A = None
        self.txt = txt

i = A("i")
l = B("l")
g = C("g")
n = D("n")
j = E("j")
m = F("m")
a = G("a")
c = H("c")
k = H("k")
h = D("h")

i.u = a
l.u = i
l.x = i
g.y = a
g.o = j
n.x = g
n.u = j
n.t = i
n.r = i
j.u = h
j.t = c
j.p = g
j.z = m
j.s = i
m.z = a
m.q = i
m.y = j
a.y = j
a.p = j
a.r = m
a.x = i
c.p = k
c.r = l
c.z = h
c.o = j
c.q = i
k.p = c
k.r = l
k.z = n
k.o = j
k.q = i
h.x = g
h.u = j
h.t = i
h.r = i
assert j.p.y.y.s.u.p.t.o.p.y.txt == "a"