$n = trim(fgets(STDIN)); $answer = ""; $keta = 0; if($n%2 == 0) { $keta = $n/2; for($i=1; $i<=$keta; $i++) { $answer = "1".$answer; } }else { $keta_floor = floor($n/2); // εˆ‡γ‚ŠδΈ‹γ’ for($i=1; $i<$keta_floor; $i++) { $answer = "1".$answer; } $answer = "7".$answer; } echo $answer."\n";