class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: A = None
        self.p: B = None
        self.s: B = None
        self.u: D = None
        self.v: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: F = None
        self.s: B = None
        self.u: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: F = None
        self.u: F = None
        self.txt = txt

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

g.y = b
g.o = f
g.v = f
g.p = h
g.s = h
g.u = n
h.s = e
m.p = n
n.u = a
e.x = m
e.q = a
e.s = h
e.u = h
a.u = e
a.r = b
a.o = m
b.v = n
b.p = f
b.q = e
b.s = e
b.o = m
b.t = k
b.u = a
b.r = h
j.p = a
j.s = a
j.u = a
k.p = a
k.s = a
k.u = a
f.y = b
f.o = g
f.v = g
f.p = h
f.s = h
f.u = n
assert j.s.o.p.u.u.x.p.txt == "
class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: A = None
        self.p: B = None
        self.s: B = None
        self.u: D = None
        self.v: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: F = None
        self.s: B = None
        self.u: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: F = None
        self.u: F = None
        self.txt = txt

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

g.y = b
g.o = f
g.v = f
g.p = h
g.s = h
g.u = n
h.s = e
m.p = n
n.u = a
e.x = m
e.q = a
e.s = h
e.u = h
a.u = e
a.r = b
a.o = m
b.v = n
b.p = f
b.q = e
b.s = e
b.o = m
b.t = k
b.u = a
b.r = h
j.p = a
j.s = a
j.u = a
k.p = a
k.s = a
k.u = a
f.y = b
f.o = g
f.v = g
f.p = h
f.s = h
f.u = n
assert j.s.o.p.u.u.x.p.txt == "n"