class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: F = None
        self.w: C = None
        self.v: B = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: E = None
        self.q: D = None
        self.x: F = None
        self.u: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

c = A("c")
h = B("h")
i = C("i")
k = D("k")
f = E("f")
j = F("j")
m = D("m")
b = A("b")

c.q = j
c.o = j
c.w = i
c.v = h
c.t = f
h.r = b
h.z = f
h.q = k
h.x = j
h.u = j
i.p = k
i.r = j
k.p = i
k.t = j
k.s = f
f.v = i
j.u = c
j.o = f
j.v = f
j.t = b
j.z = b
j.p = m
m.p = i
m.t = j
m.s = f
b.q = j
b.o = j
b.w = i
b.v = h
b.t = f
assert i.r.v.v.p.t.t.o.txt == "
class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: F = None
        self.w: C = None
        self.v: B = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: E = None
        self.q: D = None
        self.x: F = None
        self.u: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

c = A("c")
h = B("h")
i = C("i")
k = D("k")
f = E("f")
j = F("j")
m = D("m")
b = A("b")

c.q = j
c.o = j
c.w = i
c.v = h
c.t = f
h.r = b
h.z = f
h.q = k
h.x = j
h.u = j
i.p = k
i.r = j
k.p = i
k.t = j
k.s = f
f.v = i
j.u = c
j.o = f
j.v = f
j.t = b
j.z = b
j.p = m
m.p = i
m.t = j
m.s = f
b.q = j
b.o = j
b.w = i
b.v = h
b.t = f
assert i.r.v.v.p.t.t.o.txt == "j"