0) { $ta = ($b + $c) % 1000000007; $c = $b; $b = $a; $a = $ta; } $r = ($a + $b + $c) % 1000000007; echo "{$r}", PHP_EOL;