class A:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: B = None
        self.o: C = None
        self.p: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: C = None
        self.w: E = None
        self.s: F = None
        self.r: F = None
        self.txt = txt

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

e.r = b
e.o = b
e.u = n
e.p = h
n.s = b
b.w = j
b.v = n
g.r = b
g.v = f
k.u = a
k.o = n
k.x = h
k.t = h
i.x = n
i.p = b
i.w = h
i.s = j
i.r = j
h.u = e
h.o = n
h.x = k
h.t = k
a.r = b
a.o = b
a.u = n
a.p = k
f.x = n
f.p = b
f.w = k
f.s = i
f.r = i
j.x = n
j.p = b
j.w = k
j.s = i
j.r = f
assert h.u.p.o.s.txt == "
class A:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: B = None
        self.o: C = None
        self.p: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: C = None
        self.w: E = None
        self.s: F = None
        self.r: F = None
        self.txt = txt

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

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