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

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

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

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

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

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

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

g = A("g")
c = B("c")
h = C("h")
l = D("l")
k = E("k")
d = F("d")
n = G("n")
a = B("a")
f = B("f")
j = A("j")

g.y = n
g.x = n
g.s = h
g.v = h
g.z = k
c.p = h
c.v = l
h.s = l
h.y = l
h.u = n
h.w = j
l.t = k
k.w = f
d.y = k
d.t = k
n.o = k
n.s = g
a.p = h
a.v = l
f.p = h
f.v = l
j.y = n
j.x = n
j.s = h
j.v = h
j.z = k
assert h.y.t.w.p.u.s.v.s.t.w.txt == "
class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: C = None
        self.v: C = None
        self.x: G = None
        self.z: E = None
        self.txt = txt

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

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

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

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

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

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

g = A("g")
c = B("c")
h = C("h")
l = D("l")
k = E("k")
d = F("d")
n = G("n")
a = B("a")
f = B("f")
j = A("j")

g.y = n
g.x = n
g.s = h
g.v = h
g.z = k
c.p = h
c.v = l
h.s = l
h.y = l
h.u = n
h.w = j
l.t = k
k.w = f
d.y = k
d.t = k
n.o = k
n.s = g
a.p = h
a.v = l
f.p = h
f.v = l
j.y = n
j.x = n
j.s = h
j.v = h
j.z = k
assert h.y.t.w.p.u.s.v.s.t.w.txt == "f"