buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll inf = 1e9 + 7;
bool isprime(ll a) {
ll cnt = 0;
for (ll i = 1; i * i < a; i++) {
if (a % i == 0) {
cnt += 2;
}
}
if (cnt == 2)
return true;
else
return false;
}
ll mod(ll a) {
if (a < inf)
return a;
else
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll inf = 1e9 + 7;
bool isprime(ll a) {
ll cnt = 0;
for (ll i = 1; i * i < a; i++) {
if (a % i == 0) {
cnt += 2;
}
}
if (cnt == 2)
return true;
else
return false;
}
ll mod(ll a) {
if (a < inf)
return a;
else
... | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 187 |
n = input()
if n[0] in '24579':
ans = 'hon'
elif n[0] in '0168':
ans = 'pon'
else:
ans = 'bon'
print(ans)
| n = input()
if n[-1] in '24579':
ans = 'hon'
elif n[-1] in '0168':
ans = 'pon'
else:
ans = 'bon'
print(ans)
| [["-", 0, 656, 0, 57, 15, 666, 0, 206, 206, 612], ["+", 0, 57, 15, 666, 0, 206, 206, 664, 17, 33], ["+", 0, 57, 15, 666, 0, 206, 206, 664, 28, 612], ["-", 0, 57, 75, 665, 15, 666, 0, 206, 206, 612], ["+", 75, 665, 15, 666, 0, 206, 206, 664, 17, 33], ["+", 75, 665, 15, 666, 0, 206, 206, 664, 28, 612]] | 5 | 46 |
mod = int(1e9+7)
def add(a, b):
c = a + b
if c >= mod:
c -= mod
return c
def main():
#N, K = map(int,input().split())
n = int(input())
d = n % 10
if d == 3:
print('bon')
elif d == 0 or d == 1 or d == 6 or d == 8:
print('pon')
else:
print('bo... | mod = int(1e9+7)
def add(a, b):
c = a + b
if c >= mod:
c -= mod
return c
def main():
#N, K = map(int,input().split())
n = int(input())
d = n % 10
if d == 3:
print('bon')
elif d == 0 or d == 1 or d == 6 or d == 8:
print('pon')
else:
print('ho... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 95 |
n=int(input())
m=n%10
print(m)
if m==3:
print('bon')
elif m==0 or m==1 or m==6 or m==8:
print('pon')
else:
print('hon') | n=int(input())
m=n%10
if m==3:
print('bon')
elif m==0 or m==1 or m==6 or m==8:
print('pon')
else:
print('hon') | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 59 |
#include <bits/stdc++.h>
using namespace std;
#define optimizar_io \
ios_base::sync_with_stdio(0); \
cin.tie(0);
#define fore(i, a, b) for (int i = a; i < b; i++)
#define fori(i, a, b) for (int i = a; i <= b; i+... | #include <bits/stdc++.h>
using namespace std;
#define optimizar_io \
ios_base::sync_with_stdio(0); \
cin.tie(0);
#define fore(i, a, b) for (int i = a; i < b; i++)
#define fori(i, a, b) for (int i = a; i <= b; i+... | [["-", 75, 76, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 190 |
N = input()
N = str(N)
book = ""
if N[-1] == 3:
book = "bon"
elif N[-1] == 0 or N[-1] == 1 or N[-1] == 6 or N[-1] == 8:
book = "pon"
else:
book = "hon"
print(book)
| N = input()
N = str(N)
book = ""
if N[-1] == "3":
book = "bon"
elif N[-1] == "0" or N[-1] == "1" or N[-1] == "6" or N[-1] == "8":
book = "pon"
else:
book = "hon"
print(book)
| [["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 15, 679, 31, 679, 1... | 5 | 78 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// String line = sc.nextLine();
int N = sc.nextInt();
String unit;
switch (N) {
case 3:
unit = "bon";
break;
case 0:
case 1:
case 6:
case 8:
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// String line = sc.nextLine();
int N = sc.nextInt();
String unit;
switch (N % 10) {
case 3:
unit = "bon";
break;
case 0:
case 1:
case 6:
case 8:
... | [["+", 8, 196, 0, 526, 15, 23, 0, 16, 17, 109], ["+", 8, 196, 0, 526, 15, 23, 0, 16, 12, 499]] | 3 | 104 |
<?php
$a=str_split(trim(fgets(STDIN)));
$num=end($a);
if($num==3){
echo "bon";
}elseif($num==0 || $num==1 || $num==6 ||$num=8){
echo "pon";
}else{
echo "hon";
} | <?php
$a=str_split(trim(fgets(STDIN)));
$num=end($a);
if($num==3){
echo "bon";
}elseif($num==0 || $num==1 || $num==6 ||$num==8){
echo "pon";
}else{
echo "hon";
} | [["-", 75, 625, 15, 23, 0, 16, 12, 11, 0, 32], ["+", 75, 625, 15, 23, 0, 16, 12, 16, 17, 60]] | 6 | 75 |
n = int(input())
if n == 3:
print("bon")
elif n == 0 or n == 1 or n == 6 or n == 8:
print("pon")
else:
print("hon")
| n = int(input()) % 10
if n == 3:
print("bon")
elif n == 0 or n == 1 or n == 6 or n == 8:
print("pon")
else:
print("hon")
| [["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 50 |
#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin >> s;
char c = *s.end();
if (c == '2' or c == '4' or c == '5' or c == '7' or c == '9')
cout << "hon\n";
else if (c == '0' or c == '1' or c == '6' or c == '8')
cout << "pon\n"... | #include <bits/stdc++.h>
using namespace std;
string s;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin >> s;
char c = s.back();
if (c == '2' or c == '4' or c == '5' or c == '7' or c == '9')
cout << "hon\n";
else if (c == '0' or c == '1' or c == '6' or c == '8')
cout << "pon\n"... | [["-", 8, 9, 0, 43, 49, 50, 51, 66, 17, 48], ["-", 49, 50, 51, 66, 28, 2, 63, 118, 119, 120], ["+", 0, 43, 49, 50, 51, 2, 63, 118, 119, 120]] | 1 | 127 |
#include <bits/stdc++.h>
#include <cmath>
#include <iostream>
using namespace std;
typedef long long ll;
#define INF 1LL << 62
#define inf 1000000007
int main() {
ll n;
cin >> n;
ll k = n % 10;
if (n % 10 == 3) {
cout << "bon";
}
else if (k == 0 || k == 1 || k == 6 || k == 8) {
cout << "hon";
} ... | #include <bits/stdc++.h>
#include <cmath>
#include <iostream>
using namespace std;
typedef long long ll;
#define INF 1LL << 62
#define inf 1000000007
int main() {
ll n;
cin >> n;
ll k = n % 10;
if (n % 10 == 3) {
cout << "bon";
}
else if (k == 0 || k == 1 || k == 6 || k == 8) {
cout << "pon";
} ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 97 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int i;
cin >> s;
i = s.size() - 1;
if (s.at(i) == 3) {
cout << "bon" << endl;
} else if (s.at(i) == 0 || s.at(i) == 1 || s.at(i) == 6 || s.at(i) == 8) {
cout << "pon" << endl;
} else {
cout << "hon" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int i;
cin >> s;
i = s.size() - 1;
if (s.at(i) == '3') {
cout << "bon" << endl;
} else if (s.at(i) == '0' || s.at(i) == '1' || s.at(i) == '6' ||
s.at(i) == '8') {
cout << "pon" << endl;
} else {
cout << "hon" << ... | [["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]] | 1 | 113 |
n=int(input())
a=n//10
if a==3:
print("bon")
elif a==0 or a==6 or a==8 or a==1:
print("pon")
else:
print("hon") | n=int(input())
a=n%10
if a==3:
print("bon")
elif a==0 or a==6 or a==8 or a==1:
print("pon")
else:
print("hon") | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109]] | 5 | 55 |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader =
new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(reader.readLine());
int t = N % 10;
if (t == 0 || t == 1 || t == 6 || t =... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader =
new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(reader.readLine());
int t = N % 10;
if (t == 0 || t == 1 || t == 6 || t =... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 140 |
#include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
if (n == 3) {
printf("bon");
} else if (n == 0 || n == 1 || n == 6 || n == 8) {
printf("pon");
} else {
printf("hon");
}
return 0;
} | #include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
n %= 10;
if (n == 3) {
printf("bon");
} else if (n == 0 || n == 1 || n == 6 || n == 8) {
printf("pon");
} else {
printf("hon");
}
return 0;
} | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 0 | 78 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define MOD 1000000007
int main() {
string n;
cin >> n;
char j = n.at(n.size() - 1);
if (j == 2 || j == 4 || j == 5 || j == 7 || j == 9) {
cout << "hon" << endl;
} else if (j == 3) {
cout << "bon" << endl;
} else {
cout << "po... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define MOD 1000000007
int main() {
string n;
cin >> n;
char j = n.at(n.size() - 1);
if (j == '2' || j == '4' || j == '5' || j == '7' || j == '9') {
cout << "hon" << endl;
} else if (j == '3') {
cout << "bon" << endl;
} else {
... | [["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104]] | 1 | 101 |
import sys
n = sys.stdin.readline().rstrip()[-1]
d = {
'0': 'pon',
'1': 'pon',
'2': 'hon',
'3': 'bon',
'4': 'hon',
'5': 'hon',
'6': 'pon',
'7': 'hon',
'8': 'pon',
'9': 'hon',
}
print(n, d[n])
| import sys
n = sys.stdin.readline().rstrip()[-1]
d = {
'0': 'pon',
'1': 'pon',
'2': 'hon',
'3': 'bon',
'4': 'hon',
'5': 'hon',
'6': 'pon',
'7': 'hon',
'8': 'pon',
'9': 'hon',
}
print(d[n])
| [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 112 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int n;
cin >> n;
if (n == 3) {
cout << "bon" << endl;
} else if (n == 0 || n == 1 || n =... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int n;
cin >> n;
n %= 10;
if (n == 3) {
cout << "bon" << endl;
} else if (n == 0 || n ... | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 112 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ll long long
using namespace std;
const int M = 1000005;
int main() {
string ans = "hon";
int n;
cin >> n;
n = n % 10;
if (n == 3)
ans = "bon";
else if (n == 0 || n == 1 || n == 6 || 0 == 8)
ans = "pon";
cout << ans... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ll long long
using namespace std;
const int M = 1000005;
int main() {
string ans = "hon";
int n;
cin >> n;
n = n % 10;
if (n == 3)
ans = "bon";
else if (n == 0 || n == 1 || n == 6 || n == 8)
ans = "pon";
cout << ans... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]] | 1 | 95 |
n=int(input())
x=["pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"]
print(x[n//10]) | n=int(input())
x=["pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"]
print(x[n%10])
| [["-", 0, 652, 3, 4, 0, 206, 206, 657, 17, 676], ["+", 0, 652, 3, 4, 0, 206, 206, 657, 17, 109]] | 5 | 60 |
n=int(input())
if n==3:
print('bon')
elif n in [0,1,6,8]:
print('pon')
else:
print('hon') | n=int(input())%10
if n==3:
print('bon')
elif n in [0,1,6,8]:
print('pon')
else:
print('hon')
| [["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 46 |
N=input()
B=0
B=len(N)
B=B-1
print(B,N)
if N[B]=='2' or N[B]=='4' or N[B]=='5' or N[B]=='7' or N[B]=='9':
print('hon')
elif N[B]=='0' or N[B]=='1' or N[B]=='6' or N[B]=='8':
print('pon')
else:
print('bon')
| N=input()
B=0
B=len(N)
B=B-1
#print(B,N)
if N[B]=='2' or N[B]=='4' or N[B]=='5' or N[B]=='7' or N[B]=='9':
print('hon')
elif N[B]=='0' or N[B]=='1' or N[B]=='6' or N[B]=='8':
print('pon')
else:
print('bon')
| [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 128 |
N=int(input())
h=[2,4,5,7,9]
p=[0,1,6,8]
b=[3]
if N in h:print('hon')
elif N in p:print('pon')
else:print('bon') | N=int(input())
h=[2,4,5,7,9]
p=[0,1,6,8]
b=[3]
if N%10 in h:print('hon')
elif N%10 in p:print('pon')
else:print('bon') | [["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 17, 109], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 12, 612]] | 5 | 67 |
N = int(input()[0])
if N in [2,4,5,7,9]: print("hon")
if N in [0,1,6,8]: print("pon")
if N == 3: print("bon") | N = int(input()[-1])
if N in [2,4,5,7,9]: print("hon")
if N in [0,1,6,8]: print("pon")
if N == 3: print("bon") | [["-", 0, 662, 12, 652, 3, 4, 0, 206, 206, 612], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 17, 33], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 28, 612]] | 5 | 62 |
i = int(input()) // 10
if i == 3:
print('bon')
elif i in [2,4,5,7,9]:
print('hon')
else:
print('pon') | i = int(input()) % 10
if i == 3:
print('bon')
elif i in [2,4,5,7,9]:
print('hon')
else:
print('pon')
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109]] | 5 | 50 |
n = gets.to_i
s = n % 10
if s == 2 || s == 4 || s == 7 || s == 9
puts "hon"
elsif s == 0 || s == 1 || s == 6 || s == 8
puts "pon"
else
puts "bon"
end | n = gets.to_i
s = n % 10
if s == 2 || s == 4 || s == 5 || s == 7 || s == 9
puts "hon"
elsif s == 0 || s == 1 || s == 6 || s == 8
puts "pon"
else
puts "bon"
end | [["+", 15, 738, 31, 738, 31, 738, 12, 738, 12, 612], ["+", 0, 493, 0, 121, 15, 738, 31, 738, 17, 106], ["+", 0, 121, 15, 738, 31, 738, 12, 738, 31, 22], ["+", 0, 121, 15, 738, 31, 738, 12, 738, 17, 60]] | 4 | 56 |
x = input()
x = x[::-1]
x = str(x[0])
if x == 3:
print('bon')
else:
if x == 0 or x == 1 or x == 6 or x == 8:
print('pon')
else:
print('hon') | x = input()
x = x[::-1]
x = int(x[0])
if x == 3:
print('bon')
else:
if x == 0 or x == 1 or x == 6 or x == 8:
print('pon')
else:
print('hon') | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 67 |
// AUTHOR:: MOHAMAMD FAISAL
"use strict";
const main = (input) => {
// const arr = input.trim().split("");
// const firstplace = arr[arr.length -1];
const firstplace = input % 10;
if (firstplace == 3)
console.log("bon");
else if (firstplace == 0 || firstplace == 1 || firstplace == 6 ||
firs... | // AUTHOR:: MOHAMAMD FAISAL
"use strict";
const main = (input) => {
// const arr = input.trim().split("");
// const firstplace = arr[arr.length -1];
const firstplace = input % 10;
if (firstplace == 3)
console.log("bon");
else if (firstplace == 0 || firstplace == 1 || firstplace == 6 ||
firs... | [["-", 3, 3, 0, 2, 3, 3, 0, 557, 0, 491], ["+", 3, 3, 0, 2, 3, 3, 0, 557, 0, 491]] | 2 | 98 |
val = gets.split.first.to_i
val = val % 10
case val
when 2, 4, 5, 7, 9 then
p 'hon'
when 0, 1, 6, 8 then
p 'pon'
else
p 'bon'
end | val = gets.split.first.to_i
val = val % 10
case val
when 2, 4, 5, 7, 9 then
print 'hon'
when 0, 1, 6, 8 then
print 'pon'
else
print 'bon'
end | [["-", 0, 173, 0, 763, 8, 749, 0, 652, 735, 22], ["+", 0, 173, 0, 763, 8, 749, 0, 652, 735, 22], ["-", 0, 493, 0, 173, 0, 95, 0, 652, 735, 22], ["+", 0, 493, 0, 173, 0, 95, 0, 652, 735, 22]] | 4 | 50 |
from sys import stdin, stdout
for _ in range(1):#int(stdin.readline())
n=int(stdin.readline())
n%=10
if n in {2,5,7,9,5}:print('hon')
elif n in {0,1,6,8}:print('pon')
else:print('bon') | from sys import stdin, stdout
for _ in range(1):#int(stdin.readline())
n=int(stdin.readline())
n%=10
if n in {2,4,7,9,5}:print('hon')
elif n in {0,1,6,8}:print('pon')
else:print('bon') | [["-", 8, 196, 0, 57, 15, 666, 0, 282, 0, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 282, 0, 612]] | 5 | 76 |
"use strict";
const main = (arg) => {
const array = arg.trim().split("");
const lastNumber = array[array.length - 1];
if (lastNumber == 3) {
console.log("bon");
} else if (lastNumber == 0 || lastNumber == 1 || lastNumber == 6 ||
lastNumber == 8) {
console.log("pon");
} else {
console... | "use strict";
const main = (arg) => {
const array = arg.trim().split("");
const lastNumber = array[array.length - 1];
if (lastNumber == 3) {
console.log("bon");
} else if (lastNumber == 0 || lastNumber == 1 || lastNumber == 6 ||
lastNumber == 8) {
console.log("pon");
} else {
console... | [["-", 0, 1, 0, 2, 3, 3, 0, 557, 0, 491], ["+", 0, 1, 0, 2, 3, 3, 0, 557, 0, 491]] | 2 | 123 |
x = int(input())
x = x%10
if(x == 2 or x == 4 or x == 5 or x == 7 or x == 9):
print('hon')
if(x == 0 or x == 1 or x == 6 or x == 8):
print('pon')
else:
print('bon') | x = int(input())
x = x%10
if(x == 2 or x == 4 or x == 5 or x == 7 or x == 9):
print('hon')
elif(x == 0 or x == 1 or x == 6 or x == 8):
print('pon')
else:
print('bon') | [["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]] | 5 | 75 |
#include <bits/stdc++.h>
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i, c) \
for (typeof((c).begin()) i = (c).begin(); i != (c).end(); ++... | #include <bits/stdc++.h>
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i, c) \
for (typeof((c).begin()) i = (c).begin(); i != (c).end(); ++... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 231 |
N = input()
ans = int(N[len(N)-1])
print(ans)
if ans == 3:
print('bon')
elif ans == 0 or ans == 1 or ans == 6 or ans == 8:
print('pon')
else:
print('hon')
| N = input()
ans = int(N[len(N)-1])
if ans == 3:
print('bon')
elif ans == 0 or ans == 1 or ans == 6 or ans == 8:
print('pon')
else:
print('hon')
| [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 65 |
N = str(input()) #ここで標準入力
car = ''
if N[-1] == 3:
car = 'bon'
elif N[-1] == 0 or N[-1] == 1 or N[-1] == 6 or N[-1] == 8:
car = 'pon'
else:
car = 'hon'
print(car) | N = str(input()) #ここで標準入力
car = ''
if N[-1] == '3':
car = 'bon'
elif N[-1] == '0' or N[-1] == '1' or N[-1] == '6' or N[-1] == '8':
car = 'pon'
else:
car = 'hon'
print(car) | [["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 15, 679, 31, 679, 1... | 5 | 76 |
N = str(input())
if(N[-1]=="3"):
print("bon")
if(N[-1]=="0" or N[-1]=="1" or N[-1]=="6" or N[-1]=="8"):
print("pon")
if(N[-1]=="2" or N[-1]=="4" or N[-1]=="5" or N[-1]=="7" or N[-1]=="9"):
print("pon") | N = str(input())
if(N[-1]=="3"):
print("bon")
if(N[-1]=="0" or N[-1]=="1" or N[-1]=="6" or N[-1]=="8"):
print("pon")
if(N[-1]=="2" or N[-1]=="4" or N[-1]=="5" or N[-1]=="7" or N[-1]=="9"):
print("hon") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 135 |
N = list(input())
hon = [2,4,5,7,9]
pon = [0,1,6,8]
if int(N[2]) in hon:
print("hon")
elif int(N[2]) in pon:
print("pon")
else:
print("bon") | N = list(input())
hon = [2,4,5,7,9]
pon = [0,1,6,8]
if int(N[-1]) in hon:
print("hon")
elif int(N[-1]) in pon:
print("pon")
else:
print("bon") | [["-", 15, 666, 0, 652, 3, 4, 0, 206, 206, 612], ["+", 0, 652, 3, 4, 0, 206, 206, 664, 17, 33], ["+", 0, 652, 3, 4, 0, 206, 206, 664, 28, 612]] | 5 | 74 |
n = input()
hon = [2,4,5,7,9]
pon = [0,1,6,8]
bon = [3]
if int(n[-1]) in hon:
print('hon')
elif int(n[:-1]) in pon:
print('pon')
else:
print('bon') | n = input()
hon = [2,4,5,7,9]
pon = [0,1,6,8]
bon = [3]
if int(n[-1]) in hon:
print('hon')
elif int(n[-1]) in pon:
print('pon')
else:
print('bon') | [["-", 0, 652, 3, 4, 0, 206, 206, 663, 0, 102]] | 5 | 79 |
function Main(input) {
input = input.split("\n");
tmp = input[0].split(" ");
var a = parseInt(input[0][-1], 10)
if ([ 2, 4, 5, 7, 9 ].indexOf(a) >= 0) {
console.log("hon")
}
else if ([ 0, 1, 6, 8 ].indexOf(a) >= 0) {
console.log("pon")
}
else {
console.log("bon")
}
}
Main(require("fs").r... | function Main(input) {
input = input.split("\n");
tmp = input[0].split(" ");
var a = parseInt(input[0].slice(-1), 10)
if ([ 2, 4, 5, 7, 9 ].indexOf(a) >= 0) {
console.log("hon")
}
else if ([ 0, 1, 6, 8 ].indexOf(a) >= 0) {
console.log("pon")
}
else {
console.log("bon")
}
}
Main(require("... | [["-", 0, 200, 51, 2, 3, 3, 0, 69, 0, 70], ["+", 51, 2, 3, 3, 0, 2, 63, 558, 0, 131], ["+", 51, 2, 3, 3, 0, 2, 63, 558, 559, 560], ["+", 51, 2, 3, 3, 0, 2, 3, 3, 0, 24], ["-", 0, 200, 51, 2, 3, 3, 0, 69, 0, 73], ["+", 51, 2, 3, 3, 0, 2, 3, 3, 0, 25]] | 2 | 141 |
import collections
import math
N = input()
a = int(N[-1])
print(a)
if a==3:
print("bon")
elif a in [0,1,6,8]:
print("pon")
else:
print("hon")
| import collections
import math
N = input()
a = int(N[-1])
if a==3:
print("bon")
elif a in [0,1,6,8]:
print("pon")
else:
print("hon")
| [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 61 |
#exec({'RUBY_THREAD_VM_STACK_SIZE'=>'100000000'},'/usr/bin/ruby', $0) if !ENV['RUBY_THREAD_VM_STACK_SIZE']
require 'prime'
def inpf() a=gets.chomp.split(" ").map(&:to_f)end
def inps() a=gets.chomp.split(" ")end
def copy(a) Marshal.load(Marshal.dump(a)) end
def kaijo(n,r = 10**9+7)(n < 2)? 1 : (2..n).inject{|memo,u|... | #exec({'RUBY_THREAD_VM_STACK_SIZE'=>'100000000'},'/usr/bin/ruby', $0) if !ENV['RUBY_THREAD_VM_STACK_SIZE']
require 'prime'
def inpf() a=gets.chomp.split(" ").map(&:to_f)end
def inps() a=gets.chomp.split(" ")end
def copy(a) Marshal.load(Marshal.dump(a)) end
def kaijo(n,r = 10**9+7)(n < 2)? 1 : (2..n).inject{|memo,u|... | [["+", 0, 493, 0, 662, 12, 742, 500, 652, 17, 131], ["+", 0, 493, 0, 662, 12, 742, 500, 652, 735, 22]] | 4 | 352 |
$input = trim(fgets(STDIN));
$num = substr($input, -1);
if($num == 3 ){
echo "bon";
} elseif($num == 0 || $num == 1 || $num == 6 || $num == 8){
echo "pon";
}else{
echo "hon";
}
| <?php
$input = trim(fgets(STDIN));
$num = substr($input, -1);
if($num == 3 ){
echo "bon";
} elseif($num == 0 || $num == 1 || $num == 6 || $num == 8){
echo "pon";
}else{
echo "hon";
}
?> | [["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 605], ["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 611]] | 6 | 74 |
<?php
$input = trim(fgets(STDIN));
$length = strlen($input);
for($i=1; $i <= $length; $i++){
if ($length == 3){
$num = substr($input, 2);
} elseif ($length == 2){
$num = substr($input, 1);
} else {
$num = $input;
}
}
if($num == 3 ){
echo "bon";
} elseif($num == 0 || $num... | <?php
$input = trim(fgets(STDIN));
$length = strlen($input);
for($i=1; $i <= $length; $i++){
if ($length == 3){
$num = substr($input, 2);
} elseif ($length == 2){
$num = substr($input, 1);
} else {
$num = $input;
}
}
if($num == 3 ){
echo "bon";
} elseif($num == 0 || $num... | [["-", 75, 625, 15, 23, 0, 16, 12, 11, 0, 32], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 60]] | 6 | 141 |
N=(int(input()))//10
if N==2 or N==4 or N==5 or N==7 or N==9:
print("hon")
elif N==0 or N==1 or N==6 or N==8:
print("pon")
elif N==3:
print("bon") | N=(int(input()))%10
if N==2 or N==4 or N==5 or N==7 or N==9:
print("hon")
elif N==0 or N==1 or N==6 or N==8:
print("pon")
elif N==3:
print("bon") | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109]] | 5 | 73 |
#include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main(void) {
int N;
cin >> N;
if (N % 10 == 1) {
cout << "bon" << endl;
} else if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) {
cout << "pon" << endl;
} else {
cout << "hon" << endl;
}
}
| #include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main(void) {
int N;
cin >> N;
if (N % 10 == 3) {
cout << "bon" << endl;
} else if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) {
cout << "pon" << endl;
} else {
cout << "hon" << endl;
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if (n % 10 == 3)
cout << "bon";
else if (n % 0 == 0 || n % 0 == 1 || n % 0 == 6 || n % 0 == 8)
cout << "pon";
else
cout << "hon";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if (n % 10 == 3)
cout << "bon";
else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8)
cout << "pon";
else
cout << "hon";
} | [["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 13], ["-", 31, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["-", 51, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 51, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["-", 15, 339, 51, 16, 12, 16, 31, 16... | 1 | 73 |
N = input()
a = N[-1]
if a == 2 or a ==4 or a == 5 or a == 7 or a == 9:
print('hon')
elif a == 0 or a == 1 or a == 6 or a == 8:
print('pon')
else:
print('bon') | N = input()
a = int(N[-1])
if a == 2 or a ==4 or a == 5 or a == 7 or a == 9:
print('hon')
elif a == 0 or a == 1 or a == 6 or a == 8:
print('pon')
else:
print('bon') | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 70 |
import numpy as np
import sys
#import copy
def xnxn(n=0, flag="v"):
"""
args:
int n: a number of lows to read
example:
input 1
retrun 1
input 1 2 3
return [1,2,3]
input 1 2 3
4
return [[1,2,3],
[4]]
"""
... | import numpy as np
import sys
#import copy
def xnxn(n=0, flag="v"):
"""
args:
int n: a number of lows to read
example:
input 1
retrun 1
input 1 2 3
return [1,2,3]
input 1 2 3
4
return [[1,2,3],
[4]]
"""
... | [["-", 0, 57, 75, 665, 15, 666, 0, 657, 17, 139], ["+", 75, 665, 15, 679, 31, 679, 31, 679, 17, 354], ["+", 0, 57, 75, 665, 15, 679, 31, 679, 17, 354], ["+", 0, 656, 0, 57, 75, 665, 15, 679, 17, 354]] | 5 | 340 |
#include <iostream>
#include <string.h>
using namespace std;
int main() {
int n_int;
std::string n;
cin >> n_int;
n = std::to_string(n_int);
int size = n.size();
std::string out = "hon";
if (n[size] == '0') {
out = "pon";
} else if (n[size] == '1') {
out = "pon";
} else if (n[size] == '6') {
... | #include <iostream>
#include <string.h>
using namespace std;
int main() {
int n_int;
std::string n;
cin >> n_int;
n = std::to_string(n_int);
int size = n.size() - 1;
std::string out = "hon";
if (n[size] == '0') {
out = "pon";
} else if (n[size] == '1') {
out = "pon";
} else if (n[size] == '6')... | [["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 160 |
s = int(input())
n = (s % 100)
if n == 3:
print('bon')
if n in {0, 1, 6, 8}:
print('pon')
if n in {2, 4, 5, 7, 9}:
print('hon') | s = int(input())
n = (s % 10)
if n == 3:
print('bon')
if n in {0, 1, 6, 8}:
print('pon')
if n in {2, 4, 5, 7, 9}:
print('hon') | [["-", 0, 1, 0, 662, 12, 23, 0, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 23, 0, 657, 12, 612]] | 5 | 66 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ll long long
int main(void) {
int n;
cin >> n;
int x = n % 100;
switch (x) {
case 3:
cout << "bon" << endl;
break;
case 0:
case 1:
case 6:
case 8:
cout << "pon" << endl;
break;
def... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ll long long
int main(void) {
int n;
cin >> n;
int x = n % 10;
switch (x) {
case 3:
cout << "bon" << endl;
break;
case 0:
case 1:
case 6:
case 8:
cout << "pon" << endl;
break;
defa... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 94 |
#include "bits/stdc++.h"
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vll = vector<long long>;
using pii = pair<int, int>;
using pll = pair<long long, long long>;
using vpi = vector<pair<int, int>>;
#define F first
#define S second
#define pb push_back
#defi... | #include "bits/stdc++.h"
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vll = vector<long long>;
using pii = pair<int, int>;
using pll = pair<long long, long long>;
using vpi = vector<pair<int, int>>;
#define F first
#define S second
#define pb push_back
#defi... | [["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 262 |
n = int(input())
if n==0:
print("pon")
if n==1:
print("pon")
if n==2:
print("hon")
if n==3:
print("bon")
if n==4:
print("hon")
if n==5:
print("hon")
if n==6:
print("pon")
if n==7:
print("hon")
if n==8:
print("pon")
if n==9:
print("hon")
| n = int(input())%10
if n==0:
print("pon")
if n==1:
print("pon")
if n==2:
print("hon")
if n==3:
print("bon")
if n==4:
print("hon")
if n==5:
print("hon")
if n==6:
print("pon")
if n==7:
print("hon")
if n==8:
print("pon")
if n==9:
print("hon") | [["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 118 |
N=int(input())
a=N%10
if a==2 or a==4 or a==5 or a==7 or a==9:
print('hon')
elif a==0 or a==1 or a==6 or a==8:
print('pom')
else:
print('bon') | N=int(input())
a=N%10
if a==2 or a==4 or a==5 or a==7 or a==9:
print('hon')
elif a==0 or a==1 or a==6 or a==8:
print('pon')
else:
print('bon') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 71 |
hon=[2,4,5,7,9]
pon=[0,1,6,8]
n=int(list(input())[0])
if n in hon:
print('hon')
elif n in pon:
print('pon')
else:
print('bon') | hon=[2,4,5,7,9]
pon=[0,1,6,8]
n=int(list(input())[-1])
if n in hon:
print('hon')
elif n in pon:
print('pon')
else:
print('bon') | [["-", 0, 662, 12, 652, 3, 4, 0, 206, 206, 612], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 17, 33], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 28, 612]] | 5 | 68 |
N = str(input())
hon = [2, 4, 5, 7, 9]
pon = [0, 1, 6, 8]
bon = [3]
if N[-1] in hon:
print("hon")
elif N[-1] in pon:
print("pon")
else:
print("bon") | N = str(input())
hon = [2, 4, 5, 7, 9]
pon = [0, 1, 6, 8]
bon = [3]
if int(N[-1]) in hon:
print("hon")
elif int(N[-1]) in pon:
print("pon")
else:
print("bon") | [["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25], ["+", 0, 57, 75, 665, 15, 666, 0, 652, 63, 22], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 25]] | 5 | 75 |
N = input()
n = N[-1]
if n in [0,1,6,8]:
print("pon")
elif n in [3]:
print("bon")
else:
print("hon") | N = input()
n = int( N[-1] )
if n in [0,1,6,8]:
print("pon")
elif n in [3]:
print("bon")
else:
print("hon") | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 52 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll gcdEx(ll a, ll b, ll *x, ll *y) {
if (!a) {
*x = 0;
*y = 1;
return b;
}
ll x1, y1, gcd = gcdEx(b % a, a, &x1, &y1);
*x = y1 - (b / a) * x1;
*y = x1;
return gcd;
}
ll modI(ll b, ll m) {
ll x, y;
gcdEx(b, m, &x, &y);
retu... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll gcdEx(ll a, ll b, ll *x, ll *y) {
if (!a) {
*x = 0;
*y = 1;
return b;
}
ll x1, y1, gcd = gcdEx(b % a, a, &x1, &y1);
*x = y1 - (b / a) * x1;
*y = x1;
return gcd;
}
ll modI(ll b, ll m) {
ll x, y;
gcdEx(b, m, &x, &y);
retu... | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 675 |
N=int(input())
hon = [2,4,5,7,9]
pon = [0,1,6,8]
bon = [3]
if N in hon:
print("hon")
elif N in pon:
print("pon")
else:
print("bon") | N=int(input())
hon = [2,4,5,7,9]
pon = [0,1,6,8]
bon = [3]
N = N%10
if N in hon:
print("hon")
elif N in pon:
print("pon")
else:
print("bon") | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 67 |
n = input()
i = n % 10
if(i == 3):
print("bon")
elif(i == 0 or i == 1 or i == 6 or i == 8):
print("pon")
else:
print("hon") | n = int(input())
i = n % 10
if(i == 3):
print("bon")
elif(i == 0 or i == 1 or i == 6 or i == 8):
print("pon")
else:
print("hon") | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 56 |
#abc168a
n=int(input())
s1=[2,4,5,7,9]
s2=[0,1,6,8]
s3=[3]
if n in s1:
print('hon')
elif n in s2:
print('pon')
elif n in s3:
print('bon')
else:
print('')
| #abc168a
n=int(input())
s1=[2,4,5,7,9]
s2=[0,1,6,8]
s3=[3]
n=n%10
if n in s1:
print('hon')
elif n in s2:
print('pon')
elif n in s3:
print('bon')
else:
print('')
| [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 78 |
n = input()
if any(i==n[-1] for i in ["2", "5", "7", "9"]):
print("hon")
elif n[-1]=="3":
print("bon")
else:
print("pon") | n = input()
if any(i==n[-1] for i in ["2","4", "5", "7", "9"]):
print("hon")
elif n[-1]=="3":
print("bon")
else:
print("pon") | [["+", 3, 668, 0, 659, 12, 634, 0, 557, 0, 6], ["+", 3, 668, 0, 659, 12, 634, 0, 557, 0, 655], ["+", 15, 652, 3, 668, 0, 659, 12, 634, 0, 21], ["+", 3, 668, 0, 659, 12, 634, 0, 557, 0, 654]] | 5 | 68 |
#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
int main() {
string N;
cin >> N;
char last = N.back();
if (last == '3') {
cout << "bon" << endl;
} else if (last == '0' || last == '1' || last == '6' || last == '8') {
cout << "pon" << endl;
} else {
cout << "bon" << en... | #include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
int main() {
string N;
cin >> N;
char last = N.back();
if (last == '3') {
cout << "bon" << endl;
} else if (last == '0' || last == '1' || last == '6' || last == '8') {
cout << "pon" << endl;
} else {
cout << "hon" << en... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 106 |
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# あまりの計算
b = a%10
print(b)
# 出力するテキスト
if b == 2 or b == 4 or b == 5 or b == 7 or b == 9:
out = 'hon'
elif b == 0 or b == 1 or b == 6 or b == 8:
out = 'pon'
elif b == 3:
out = 'bon'
# 出力
print("{}".format(out)) | # -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# あまりの計算
b = a%10
# 出力するテキスト
if b == 2 or b == 4 or b == 5 or b == 7 or b == 9:
out = 'hon'
elif b == 0 or b == 1 or b == 6 or b == 8:
out = 'pon'
elif b == 3:
out = 'bon'
# 出力
print("{}".format(out)) | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 91 |
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
void solve() {
int n;
cin >> n;
if (n % 10 == 3)
cout << "bon" << endl;
if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8)
cout << "pon" << endl;
else
cout << "hon" << endl;
}
int main() {
ios_base::sync_with_stdi... | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
void solve() {
int n;
cin >> n;
if (n % 10 == 3)
cout << "bon" << endl;
else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8)
cout << "pon" << endl;
else
cout << "hon" << endl;
}
int main() {
ios_base::sync_with... | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 117 |
def main():
N = int(input())
d = N % 10
if(d == 2 or d == 4 or d == 7 or d == 9):
print("hon")
elif(d == 0 or d == 1 or d == 6 or d == 8):
print("pon")
elif(d == 3):
print("bon")
if __name__ == "__main__":
main() | def main():
N = int(input())
d = N % 10
if(d == 2 or d == 4 or d == 5 or d == 7 or d == 9):
print("hon")
elif(d == 0 or d == 1 or d == 6 or d == 8):
print("pon")
elif(d == 3):
print("bon")
if __name__ == "__main__":
main() | [["+", 0, 679, 31, 679, 31, 679, 12, 666, 0, 612], ["+", 0, 57, 15, 23, 0, 679, 31, 679, 17, 354], ["+", 15, 23, 0, 679, 31, 679, 12, 666, 0, 22], ["+", 15, 23, 0, 679, 31, 679, 12, 666, 667, 60]] | 5 | 91 |
a = int(input()[-1])
pon = [0, 1, 6, 8]
if a == 3:
print("bon")
elif a in pon:
print("pon")
else:
print("bon") | a = int(input()[-1])
pon = [0, 1, 6, 8]
if a == 3:
print("bon")
elif a in pon:
print("pon")
else:
print("hon") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 53 |
N = int(input())
if N%10 == [2,4,5,7,9]:
print('hon')
elif N%10 == [0,1,6,8]:
print('pon')
else:
print('bon') | N = int(input())
if N%10 in [2,4,5,7,9]:
print('hon')
elif N%10 in [0,1,6,8]:
print('pon')
else:
print('bon') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 267], ["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 60], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 267]] | 5 | 60 |
#include <iostream>
using namespace std;
/*変数の宣言*/
string saffix;
int N;
int main() {
std::cin >> N;
N = N % 10;
if (N == 3) {
saffix = "bon";
} else if (N == 0 || N == 1 || N == 6 || N == 10) {
saffix = "pon";
} else {
saffix = "hon";
}
std::cout << saffix;
}
| #include <iostream>
using namespace std;
/*変数の宣言*/
string saffix;
int N;
int main() {
std::cin >> N;
N = N % 10;
if (N == 3) {
saffix = "bon";
} else if (N == 0 || N == 1 || N == 6 || N == 8) {
saffix = "pon";
} else {
saffix = "hon";
}
std::cout << saffix;
}
| [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 87 |
num = int(input()) % 10
if num==3:
print('bon')
elif num==1 or num==6 or num==8:
print('pon')
else:
print('hokn') | num = int(input()) % 10
if num==3:
print('bon')
elif num == 0 or num == 1 or num == 6 or num == 8:
print('pon')
else:
print('hon') | [["+", 15, 679, 31, 679, 31, 679, 31, 666, 0, 612], ["+", 75, 665, 15, 679, 31, 679, 31, 679, 17, 354], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 0, 22], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 60], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 48 |
N = int(input())%10
yomi = {0:"pon",1:"pon",2:"hon",3:"bon",4:"hon",5:"hon",6:"pon",7:"hon",8:"hon",9:"hon"}
print(yomi[N]) | N = int(input())%10
yomi = {0:"pon",1:"pon",2:"hon",3:"bon",4:"hon",5:"hon",6:"pon",7:"hon",8:"pon",9:"hon"}
print(yomi[N])
| [["-", 0, 662, 12, 680, 0, 569, 51, 557, 0, 6], ["+", 0, 662, 12, 680, 0, 569, 51, 557, 0, 6]] | 5 | 80 |
def resolve():
N = int(input())
if(N % 10 in [2,4,5,7,9]):
print("hon")
elif(N % 10 in [0,1,6,8]):
print("pon")
elif(N % 10 == 3):
print("bon")
| def resolve():
N = int(input())
if(N % 10 in [2,4,5,7,9]):
print("hon")
elif(N % 10 in [0,1,6,8]):
print("pon")
elif(N % 10 == 3):
print("bon")
resolve() | [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 76 |
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <new>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
... | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <new>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 161], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132]] | 1 | 132 |
num = int(input())
ext = num%10
if ext == 2 or ext == 4 or ext == 5 or ext == 7 or ext == 9:
print("hon")
if ext == 3:
print("bon")
else:
print("pon") | num = int(input())
ext = num%10
if ext == 2 or ext == 4 or ext == 5 or ext == 7 or ext == 9:
print("hon")
elif ext == 3:
print("bon")
else:
print("pon") | [["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]] | 5 | 59 |
n = input()
if n[-1] in [2,4,5,7,9]:
print('hon')
elif n[-1] in [0,1,6,8]:
print('pon')
else:
print('bon') | n = input()
if int(n[-1]) in [2,4,5,7,9]:
print('hon')
elif int(n[-1]) in [0,1,6,8]:
print('pon')
else:
print('bon')
| [["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25], ["+", 0, 57, 75, 665, 15, 666, 0, 652, 63, 22], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 25]] | 5 | 61 |
n = input()
N = int(n)
m = N % 10
if (m == 3):
print(bon)
elif (m == 0 or m == 1 or m == 6 or m == 8):
print(pon)
else:
print(hon) | n = input()
N = int(n)
m = N % 10
if (m == 3):
print("bon")
elif (m == 0 or m == 1 or m == 6 or m == 8):
print("pon")
else:
print("hon") | [["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 56 |
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main() {
string n;
cin >> n;
if (strchr("24579", n.back()))
cout << "hon\n";
else if (strchr("2168", n.back()))
cout << "pon\n";
else
cout << "bon";
return 0;
}
| #include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main() {
string n;
cin >> n;
if (strchr("24579", n.back()))
cout << "hon\n";
else if (strchr("0168", n.back()))
cout << "pon\n";
else
cout << "bon";
return 0;
}
| [["-", 15, 339, 51, 2, 3, 4, 0, 5, 0, 6], ["+", 15, 339, 51, 2, 3, 4, 0, 5, 0, 6]] | 1 | 78 |
n=int(input())%10
if n==2 or n==4 or n==7 or n==9:
print("hon")
elif n==3:
print("bon")
else:
print("pon") | n=int(input())%10
if n==2 or n==4 or n==7 or n==9 or n==5:
print("hon")
elif n==3:
print("bon")
else:
print("pon")
| [["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 60], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 52 |
print("-phbhhphph"[int(input())%10]+"on") | print("pphbhhphph"[int(input())%10]+"on") | [["-", 3, 4, 0, 657, 31, 206, 51, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 206, 51, 557, 0, 6]] | 5 | 20 |
pens = input()
if int(pens[-1]) in [2,4,5,7,8]:
print('hon')
elif int(pens[-1]) in [0,1,6,8]:
print('pon')
elif 3 == int(pens[-1]):
print('bon') | pens = input()
if int(pens[-1]) in [2,4,5,7,9]:
print('hon')
elif int(pens[-1]) in [0,1,6,8]:
print('pon')
elif 3 == int(pens[-1]):
print('bon') | [["-", 0, 656, 0, 57, 15, 666, 0, 634, 0, 612], ["+", 0, 656, 0, 57, 15, 666, 0, 634, 0, 612]] | 5 | 77 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
int main() {
int n;
cin >> n;
if (n == 3)
cout << "bon" << endl;
else if (n == 0 || n == 1 || n == 6 || n == 8)
cout << "pon" << endl;
else
cout << "hon" << endl;
return 0;
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
int main() {
int n;
cin >> n;
n %= 10;
if (n == 3)
cout << "bon" << endl;
else if (n == 0 || n == 1 || n == 6 || n == 8)
cout << "pon" << endl;
else
cout << "hon" << endl;
... | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 83 |
N = input()
if N[-1] in ["2","4","5","7","9"]:
print("hon")
elif N[-1] in ["1","6","8"]:
print("pon")
else:
print("bon")
| N = input()
if N[-1] in ["2","4","5","7","9"]:
print("hon")
elif N[-1] in ["0","1","6","8"]:
print("pon")
else:
print("bon") | [["+", 75, 665, 15, 666, 0, 634, 0, 557, 0, 6], ["+", 75, 665, 15, 666, 0, 634, 0, 557, 0, 655], ["+", 0, 57, 75, 665, 15, 666, 0, 634, 0, 21], ["+", 75, 665, 15, 666, 0, 634, 0, 557, 0, 654]] | 5 | 75 |
##A
N = str(input())
if N[-1] == '3':
print('bon')
elif N[-1] == '0' or '1' or '6' or '8':
print('pon')
else:
print('hon') | ##A
N = str(input())
if N[-1] == '3':
print('bon')
elif N[-1] in ['0','1','6','8']:
print('pon')
else:
print('hon') | [["-", 15, 679, 31, 679, 31, 679, 31, 666, 667, 60], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 267], ["+", 0, 57, 75, 665, 15, 666, 0, 634, 0, 70], ["-", 75, 665, 15, 679, 31, 679, 31, 679, 17, 354], ["+", 0, 57, 75, 665, 15, 666, 0, 634, 0, 21], ["-", 0, 57, 75, 665, 15, 679, 31, 679, 17, 354], ["-", 0, 656, 0, 57, ... | 5 | 63 |
n = input()
m = n % 10
if m == 2 or m == 4 or m == 5 or m == 7 or m == 9:
print("hon")
elif m == 3:
print("bon")
else:
print("pon") | n = int(input())
m = n % 10
if m == 2 or m == 4 or m == 5 or m == 7 or m == 9:
print("hon")
elif m == 3:
print("bon")
else:
print("pon")
| [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 56 |
#include <stdio.h>
int main() {
int a;
scanf("%d", &a);
a = a % 10;
if (a == 3)
printf("bon\n");
else if (a == 0 || a == 1 || a == 6 || a == 7)
printf("pon\n");
else
printf("hon\n");
return 0;
} | #include <stdio.h>
int main() {
int a;
scanf("%d", &a);
a = a % 10;
if (a == 3)
printf("bon\n");
else if (a == 0 || a == 1 || a == 6 || a == 8)
printf("pon\n");
else
printf("hon\n");
return 0;
} | [["-", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13]] | 0 | 80 |
function solve(n) {
if ([ 3 ].indexOf(n % 10) >= 0) {
return 'hon';
}
if ([ 0, 1, 6, 8 ].indexOf(n % 10) >= 0) {
return 'pon';
}
return 'bon';
}
function main(input) {
let n = parseInt(input);
console.log(solve(n));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
| function solve(n) {
if ([ 3 ].indexOf(n % 10) >= 0) {
return 'bon';
}
if ([ 0, 1, 6, 8 ].indexOf(n % 10) >= 0) {
return 'pon';
}
return 'hon';
}
function main(input) {
let n = parseInt(input);
console.log(solve(n));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
| [["-", 0, 57, 64, 556, 0, 37, 0, 557, 0, 491], ["+", 0, 57, 64, 556, 0, 37, 0, 557, 0, 491], ["-", 0, 435, 8, 556, 0, 37, 0, 557, 0, 491], ["+", 0, 435, 8, 556, 0, 37, 0, 557, 0, 491]] | 2 | 108 |
n = input()
print((n in '24579')*'hon' + (n in '0168')*'pon' + (n in '3')*'bon') | n = input()[-1]
print((n in '24579')*'hon' + (n in '0168')*'pon' + (n in '3')*'bon') | [["+", 0, 656, 0, 1, 0, 662, 12, 206, 0, 70], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 17, 33], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 28, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 0, 73]] | 5 | 43 |
N = int(input())
N = int(N[-1])
if N == 0 or N == 1 or N == 6 or N == 8 :
print("pon")
elif N == 3:
print("bon")
else:
print("hon") | N = input()
N = int(N[-1])
if N == 0 or N == 1 or N == 6 or N == 8 :
print("pon")
elif N == 3:
print("bon")
else:
print("hon") | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 60 |
n = int(input())
if n in (2, 4, 5, 7, 9):
print("hon")
elif n == 3:
print("bon")
else:
print("pon")
| n = int(input())
n = n % 10
if n in (2, 4, 5, 7, 9):
print("hon")
elif n == 3:
print("bon")
else:
print("pon")
| [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 48 |
N=(input())
if int(N[-1])==3:
print('bon')
elif int(N[-1])==2 or int(N[-1])==4 or (N[-1])==5 or (N[-1])==7 or (N[-1])==9:
print('hon')
else:
print('pon') | N=(input())
if int(N[-1])==3:
print('bon')
elif int(N[-1])==2 or int(N[-1])==4 or int(N[-1])==5 or int(N[-1])==7 or int(N[-1])==9:
print('hon')
else:
print('pon') | [["+", 31, 679, 31, 679, 12, 666, 0, 652, 63, 22], ["+", 15, 679, 31, 679, 12, 666, 0, 652, 63, 22], ["+", 75, 665, 15, 679, 12, 666, 0, 652, 63, 22]] | 5 | 92 |
N = input()
N = N % 10
if N == 2 or N == 4 or N == 5 or N == 7 or N == 9:
print("hon")
elif N == 0 or N == 1 or N == 6 or N == 8:
print("pon")
else:
print("bon") | N = int(input())
N = N % 10
if N == 2 or N == 4 or N == 5 or N == 7 or N == 9:
print("hon")
elif N == 0 or N == 1 or N == 6 or N == 8:
print("pon")
else:
print("bon")
| [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 68 |
N=input('suuzi')
n=len(N)
number=int(N[n-1])
if number == 2or number== 4 or number==5 or number==7or number==9:
print('hon')
elif number==0 or number==1 or number==6 or number==8:
print('pon')
else:
print('bon')
| N=input()
n=len(N)
number=int(N[n-1])
if number == 2or number== 4 or number==5 or number==7or number==9:
print('hon')
elif number==0 or number==1 or number==6 or number==8:
print('pon')
else:
print('bon')
| [["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 655]] | 5 | 83 |
N=input()
if N%10==3:
print('bon')
elif N%10==0 or N%10==1 or N%10==6 or N%10==8:
print('pon')
else:
print('hon')
| N=int(input())
if N%10==3:
print('bon')
elif N%10==0 or N%10==1 or N%10==6 or N%10==8:
print('pon')
else:
print('hon')
| [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 57 |
n = int(input())
if n[-1]=='2' or n[-1]=='4' or n[-1]=='5' or n[-1]=='7' or n[-1]=='9':
print('hon')
elif n[-1]=='3':
print('bon')
else:
print('pon') | n=input()
if n[-1]=='2' or n[-1]=='4' or n[-1]=='5' or n[-1]=='7' or n[-1]=='9':
print('hon')
elif n[-1]=='3':
print('bon')
else:
print('pon') | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 90 |
import sys
def input():
return sys.stdin.readline()[:-1]
def test():
# n,m,q = map(int, input().split())
n = input()
if n[-1] == "3":
return("bon")
elif n[-1] in {0,1,6,8}:
return("pon")
else:
return("hon")
print(test()) | import sys
def input():
return sys.stdin.readline()[:-1]
def test():
# n,m,q = map(int, input().split())
n = input()
if n[-1] == "3":
return("bon")
elif n[-1] in {"0","1","6","8"}:
return("pon")
else:
return("hon")
print(test()) | [["+", 75, 665, 15, 666, 0, 282, 0, 557, 0, 654], ["+", 75, 665, 15, 666, 0, 282, 0, 557, 0, 655]] | 5 | 85 |
// Solution.cpp : このファイルには 'main'
// 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include <algorithm>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int n;
cin >> n;
n %= 10;
switch (n) {
case 3:
cout << "bon" << endl;
brea... | // Solution.cpp : このファイルには 'main'
// 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include <algorithm>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int n;
cin >> n;
n %= 10;
switch (n) {
case 3:
cout << "bon" << endl;
brea... | [["+", 0, 99, 8, 9, 0, 100, 0, 93, 0, 94], ["+", 0, 99, 8, 9, 0, 100, 0, 93, 0, 35], ["+", 0, 99, 8, 9, 0, 100, 0, 1, 0, 35]] | 1 | 89 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int S = N % 10;
if (S == 3) {
cout << "bon";
} else if (S == 1 || S == 6 || S == 8) {
cout << "pon";
} else {
cout << "hon";
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int S = N % 10;
if (S == 3) {
cout << "bon";
} else if (S == 1 || S == 6 || S == 8 || S == 0) {
cout << "pon";
} else {
cout << "hon";
}
} | [["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 72 |
n = int(input())
if n%10 == [2, 4, 5, 7, 9] :
print('hon')
elif n%10 == [0, 1, 6, 8] :
print('pon')
elif n%10 == [3] :
print('bon') | n = int(input())
if n%10 in [2, 4, 5, 7, 9] :
print('hon')
elif n%10 in [0, 1, 6, 8] :
print('pon')
elif n%10 in [3] :
print('bon') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 267], ["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 60], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 267]] | 5 | 67 |
N = input(),strip()
if N[-1] in ['2', '4', '5', '7', '9']:
print('hon')
elif N[-1] in ['0', '1', '6', '8']:
print('pon')
elif N[-1] == '3':
print('bon')
| N = input().strip()
if N[-1] in ['2', '4', '5', '7', '9']:
print('hon')
elif N[-1] in ['0', '1', '6', '8']:
print('pon')
elif N[-1] == '3':
print('bon')
| [["-", 0, 656, 0, 1, 0, 662, 12, 432, 0, 21], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131]] | 5 | 92 |
n=int(input())
if n==3:
print("bon")
elif n==0 or n==1 or n==6 or n==8:
print("pon")
else:
print("hon") | n=int(input())
n=n%10
if n==3:
print("bon")
elif n==0 or n==1 or n==6 or n==8:
print("pon")
else:
print("hon") | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 50 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.