class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: E = None
        self.y: B = None
        self.v: E = None
        self.o: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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

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

e = A("e")
a = B("a")
g = C("g")
l = D("l")
k = E("k")
h = F("h")
c = F("c")
m = C("m")
i = E("i")
b = C("b")

e.s = g
e.x = k
e.v = k
e.y = a
e.o = l
a.p = k
a.w = e
g.t = h
l.p = i
k.w = a
k.u = h
k.v = h
k.p = e
h.t = a
c.t = a
m.t = c
i.w = a
i.u = h
i.v = h
i.p = e
b.t = h
assert a.w.o.p.w.w.y.p.w.p.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: E = None
        self.y: B = None
        self.v: E = None
        self.o: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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

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

e = A("e")
a = B("a")
g = C("g")
l = D("l")
k = E("k")
h = F("h")
c = F("c")
m = C("m")
i = E("i")
b = C("b")

e.s = g
e.x = k
e.v = k
e.y = a
e.o = l
a.p = k
a.w = e
g.t = h
l.p = i
k.w = a
k.u = h
k.v = h
k.p = e
h.t = a
c.t = a
m.t = c
i.w = a
i.u = h
i.v = h
i.p = e
b.t = h
assert a.w.o.p.w.w.y.p.w.p.txt == "k"